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

  • Documentation on Find Resources · 10 years ago

    Yes, dump() is handy as well. Right now I do a lot of testing with AJAX requests and so dump() and the Debug bar are of little use. So, only if you promise not to laugh, I'll let you (all) in on my de

  • Documentation on Find Resources · 10 years ago

    I dump() liberally :)

  • Documentation on Find Resources · 10 years ago

    It's nice to know that I'm not the only one who is struggling. Regarding the docs, these are pretty good. What I need are more examples like you are doing in the Cookbook. Great work. The Grav Debug b

  • Documentation on Find Resources · 10 years ago

    Well the official API doc for this is here: RocketTheme\Toolbox\ResourceLocator\ResourceLocatorInterface. Everything I learned about this I learned by looking at other plugins and trial and error. Thi

  • Documentation on Find Resources · 10 years ago

    Only by trial and error did I find out that the correct php command to find the filesystem path of the /user/pages directory is: $this->grav['locator']->findResource('page://'); Some failed trie

  • Dynamically add page url to contact form · 10 years ago

    Got it… {% if field.type != "hidden" %}works!

  • Dynamically add page url to contact form · 10 years ago

    Hmm thanks, but unfortunately it still does not work :/ Am I missing something else? Code snippet from data.html.twig {% if not field.type == "hidden" %} <p class="sent-message__text">{{ strin

  • Dynamically add page url to contact form · 10 years ago

    I think {% if not field.type == "hidden" %} will work. It's a string, not a variable.

  • Dynamically add page url to contact form · 10 years ago

    Alright. Already thought of doing this. Any hint on how to filter hidden input fields? {% if not field.type == hidden %}does not work. :(

  • Dynamically add page url to contact form · 10 years ago

    You can customize the thank you page by editing that page twig template, which by default is the very generic https://github.com/getgrav/grav-plugin-form/blob/develop/templates/formdata.html.twig. ev