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

  • Adding inline CSS to the header · 10 years ago

    Yes I tried it, but most likely I did something wrong because it didn't work. I used {% do assets.addInlineCss('h1{color: red;}') %} in the modular template but there was no output in the header, even

  • Adding inline CSS to the header · 10 years ago

    Have you tried it? I think it should work, but you might need to disable the page cache for that page.

  • Adding inline CSS to the header · 10 years ago

    Hi, is it possible to add inline CSS to the header from within a modular template?

  • A form on every page using a template · 10 years ago

    No it won't work because the process of parsing that form data is handled onPageInitialized, and that is only run for the overall page, it does not get kicked off when you simply include a a twig temp

  • A form on every page using a template · 10 years ago

    Just browsing and haven't tested, but what about something like this: Since you only have one form but want it on several pages...again, just a thought, not sure if it will work.

  • A form on every page using a template · 10 years ago

    First import@ only works when defining a form. It is not actually for importing yaml data from one place to another. Overall this problem is not that trivial to solve. I was looking at this and it's

  • A form on every page using a template · 10 years ago

    Hi again, Wouldn’t this be possible to use import@ for this? By putting the whole form into an external yaml and calling it from each frontmatter?

  • A form on every page using a template · 10 years ago

    Thanks, okay. Another solution for me would be to have one form only, but with a select element to choose ‘what page your message is about’. In which way can I list, say, all the subpages of one page

  • A form on every page using a template · 10 years ago

    There is currently no way to do it with the Form plugin. I would like to add a shortcode-based form you can embed in pages, but currently it's not there yet. You can use a js-based form from an extern

  • A form on every page using a template · 10 years ago

    Thanks for your answer. It’s actually the first thing I tried, but I couldn’t find a way to make it work on several pages. I would like to define the form just once, and display it in several pages.