Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Dmitry Member

@rustark · Joined 9 years ago · 13 posts · 7 topics · 1 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • The title is inside the content · 3 years ago

    Hello. I have modular page: When i try copy this content in another page // alias _template {% set inc = page.find(page.header.alias) %} {% include inc.template ~ '.html.twig' with {'page': inc) } %

  • Category list of child pages · 6 years ago

    My decision now: {% set items = page.evaluate({'@page.children': '/items'}) %} {% set catlist = [] %} {% for item in items %} {% for cat in item.taxonomy.category %} {% if cat not in catl

  • Category list of child pages · 6 years ago

    Hello! I have a list of pages: {% set items = page.evaluate({'@page.children': '/items'}) %} How can I get a list of categories for these pages?

  • Show a list of pages with a tag · 6 years ago

    Thank you, your decision is much cleaner!

  • Show a list of pages with a tag · 6 years ago

    My decision curve <ul> {% for post in taxonomy.findTaxonomy({(taxname): taxval}) %} {% set url = post.url|split('/') %} {% set slug = '/' ~ url[1] %} {# theme_var('params.articles.ro

  • Show a list of pages with a tag · 6 years ago

    Hey! There's a list of pages: {% set articles = page.evaluate({'@page.children': '/articles'}) %} I need to show a list of pages with a specific tag. How can I do that? {% set articles = page.evaluate

  • Author's articles at the following address · 6 years ago

    Thanks! It's work. {% set autor = 'Name' %} {% set articles = page.evaluate({'@page.children':'/articles'}) %} {% set authors = page.evaluate({'@taxonomy': {'author': author}}) %} {% set pages = artic

  • Author's articles at the following address · 6 years ago

    {% set acnt = 0 %} {% set pages = page.find('/articles').children %} {% for p in pages %} {% for a in p.taxonomy.author %} {% if a == author %} {% set acnt = acnt + 1 %}

  • Author's articles at the following address · 6 years ago

    Hi! There is a URL /articles It is necessary to show only the articles of one author in this URL. How can I do it? Now it works like this: <ul> {% for p in page.find('/articles').children %}

  • 500 Internal Server Error after update to 1.6 · 7 years ago

    All this was done. It's not working. I had to return the old 1.5.8 version.