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

  • Navigation dropdown menu according to lang · 11 years ago

    ♪ Bonsoir i am trying to get navigation dropdown menu according to langswitcher.current (= current language of page) in the following navigation.html.twig part of the code (where dropdown collection i

  • Integrate with external non-Twig templates · 11 years ago

    There isn't a tutorial, but you can see plenty of filter examples in our Grav Twig extension: https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/TwigExtension.php You can also se

  • Integrate with external non-Twig templates · 11 years ago

    Hi rhukster, In another post about adding PHP on Grav you answered: If you need to have custom PHP for some reason, Grav's simple plugin system makes this very easy. You can do PHP ‘work’ then set th

  • Integrate with external non-Twig templates · 11 years ago

    It would be nice to change the non-Grav CMS but, as I'm not the owner, I can't. In fact, the only way I can embed external content into this CMS is by using the HTML template they provide. So I have t

  • Integrate with external non-Twig templates · 11 years ago

    This is a very specific request that i've not come across before. Are you sure this is the best approach? Would it make more sense to just include Grav in your external CMS rather than trying to incl

  • Integrate with external non-Twig templates · 11 years ago

    So far, I can use this PHP code: $contents = file_get_contents("http://example.com/cms/template.html"); $contents = str_replace("###APPINCLUDEHEADER###", "{% block header %},{% endblock %}", $contents

  • Integrate with external non-Twig templates · 11 years ago

    Hi, I need to create a theme that integrates and "extends" templates from an external CMS. This CMS generates an HTML template with three placeholders: APP_INCLUDE_HEADER### : Placeholder for addition

  • Random setting css on cookie session · 11 years ago

    ♪ thanks you very much!

  • Random setting css on cookie session · 11 years ago

    Grav has a randomize twig filter.. so you can pass an array and it will return a random item from that array.

  • Random setting css on cookie session · 11 years ago

    I see ... a plugin ... right now, it's out of range of possible, but I have the point and I'll keep that in mind for later ... Once you have this variable in Twig, do you use it with the random method