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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Query string busting cache · 10 years ago

    They query string should not be busting the cache. Doesn't in my testing. My test pages load the same if i have a query string of ?ID=123 or none at all. Are you sure the load times are ok without the

  • Query string busting cache · 10 years ago

    I'm passing a query string to my grav site such as: mygravsite.com/mylandingpage?ID=123 The ID does not affect the page render - it is for a javascript plugin to construct outbound links. The presence

  • Displaying stuff only if page has children · 10 years ago

    or maybe like this: {% if sub_sections.children.count() > 0 %} <div>html</div> {% endif %}

  • Displaying stuff only if page has children · 10 years ago

    thank you. it is the solution.

  • Displaying stuff only if page has children · 10 years ago

    I have not tested yet, but this should work: {% if sub_sub_sections|length > 0 %} <div>html</div> {% endif %}

  • Displaying stuff only if page has children · 10 years ago

    I'd like to test if a page has children and showing html content only if it has children. {% set sub_sub_sections = sub_section.children %} this is the test, but it renders the html content anyway ...

  • Recommendation for best practice · 10 years ago

    I would recommend writing a plugin to handle this. Also i would recommend using a YAML config for any database info. You could put it in site.yaml, or create another user/config/db.yaml or something

  • Recommendation for best practice · 10 years ago

    I have a small data visualization portfolio, which I am planning to convert into GRAV cms. I have some static pages, which I have already converted. However, there are some dynamic/ interactive pages

  • Hosting site online help! · 10 years ago

    your /about seems to result in a #500 internal server error...

  • Hosting site online help! · 10 years ago

    Yep, that was the issue. I've upgraded to the latest version now and it's working! Thanks for everyones help!