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.

pamtbaau Legend

Grav Forum Moderators

@pamtbaau · Joined 8 years ago · 3127 posts · 12 topics · 1011 reputation

Badges

Grav Core Team ModSquad Team Member ✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Plugins and caching · 8 years ago

    Can't help being curious... In GChartShortcode::process() you add assets in the following two ways: 1) $this->shortcode->addAssets('js', 'https://www.gstatic.com/charts/loader.js'); 2) $this-&gt

  • How to avoid double submit validation for the ajax contact form? · 8 years ago

    I've tried that simple solution when I tried your form in a test environment. It didn't work in my tests unfortunately, but glad it does works for you :-)

  • Plugins and caching · 8 years ago

    @Perlkonig Looking for an alternative to my previous solution where javascript is embedded in the cached page content. Not sure which one is better, more efficient, or cleaner... TLDR: In GChartShort

  • Questions about custom.css · 8 years ago

    @ityoflaw To answer your questions point by point: Using custom.css is not the default way, but sure is the simplest way. If the theme you are using does use custom.css, it will add custom.css as

  • Plugins and caching · 8 years ago

    @Perlkonig Your plugin is using grav-plugin-shortcode-core to process the shortcode embedded in the page. Inside your GChartShortcode::process() function you call addInlineJS to add Google's charting

  • How to avoid double submit validation for the ajax contact form? · 8 years ago

    @Pavlo In the following solution, you can submit a form, return to the same page with a "Thank you!" message above a cleared form and submit again. Steps I've taken: I used your provided code to cre

  • Themeing taxonomy pages · 8 years ago

    @dcrobertson Yes, my examples were changing the appearance of the page containing a certain tag itself. If you want to change the page that lists the pages with a certain tag and the tag is provided b

  • Themeing taxonomy pages · 8 years ago

    @dcrobertson In your Twig template, you can get the taxonomy assigned to a page using: page.header.taxonomy.mytag Based on that variable you could do al sorts or things to change the layout/style of

  • How to avoid double submit validation for the ajax contact form? · 8 years ago

    @pavlo, Not knowing the code and its configuration options, it is hard to tell... I see a nonce is being used in this form which will probably be tested on submission to prevent resubmission of the sa

  • Plugin fails ever and ever again · 8 years ago

    @Niels It makes me curious about which docs you followed step by step. Would you mind sharing the url?