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.

Claud Rusnac Member

@crusnac · Joined 9 years ago · 42 posts · 16 topics · 8 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Page Inject Caching issue · 8 years ago

    I am having an issue when using a custom template. I am injecting a page using a custom template: [plugin:page-inject](/4.0/4.2/4.2.1/4.2.1.1?template=simple) The template is very simple: <div cla

  • Get url page via twig · 8 years ago

    I ended up using: {{uri.path|split('/')|last|split('-')|first}} since in needed the actual URI that was passed. I am using this on the error.md page, so I couldn't use the slug because it would alway

  • Get url page via twig · 8 years ago

    I have a URL: /7.0/7.1/7.1.1/7.1.1.4, but trying to access "7.1.1.4" via twig. The {{uri.path}} Outputs the entire path.

  • Displaying All Taxonomies that are set · 8 years ago

    I figured this out by using the above code with some minor adjustments: <table> <thead> <tr> <th>Taxonomy</th> <th>Value(s)</th

  • Displaying All Taxonomies that are set · 8 years ago

    Thanks for the code, but this is displaying all the taxonomies for all pages. I am looking to display the taxonomies that are applicable per page. I am currently using the following code to display t

  • If a Taxonomy Exists · 8 years ago

    I am trying to write some code to determine if a Taxonomy is set on a particular page, but I must be doing something wrong... {% if page.taxonomy.type == "general" %} Do Something... {% e

  • Displaying All Taxonomies that are set · 8 years ago

    Yes - when I use {% for tax,value in taxlist[taxonomy] %} I get the error. When I use {% for tax,value in taxlist %} I don't get an error, only the Taxonomies are displayed. I Issue is that I can't

  • Displaying All Taxonomies that are set · 8 years ago

    <ul> {% set taxlist = taxonomylist.get() %} {% for tax,value in taxlist %} {% if tax is not empty %} <li>{{ tax|capitalize }} : {{ value }}</li> {% endif %} {% endfor %} </ul>

  • Displaying All Taxonomies that are set · 8 years ago

    I am able to dump this {% set taxlist = taxonomylist.get() %} {{ dump(taxlist) }} I am able to output the Taxonomy list, but not the values. When I add {{ value }} to <li>{{ tax|capitalize }

  • Displaying All Taxonomies that are set · 8 years ago

    This is the error I am getting: [2018-02-23 17:21:54] grav.CRITICAL: An exception has been thrown during the rendering of a template ("Illegal offset type in isset or empty"). - Trace: #0 /nisp-cms/ve