pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3198 posts · 17 topics · 1020 reputation
Badges
Recent posts
-
Need help with checkbox customization
· 5 years ago
@01K, I'm afraid the reply you have marked as solution doesn't provide much help to others... The purpose of the forum is not only to answer/fix someone's issues, it also serves as a knowledge base. I
-
Is it allowed to delete the cache folder?
· 5 years ago
@Henning007, A few alternative strategies: You can safely run $ bin/grav cache on your remote site before downloading it. However... the first visitor hitting the site will get a performance penalty
-
Need help with checkbox customization
· 5 years ago
@01K, Is there a compelling reason to put time and effort in custom id's/names for input fields? I suspect changing id/name attributes of input fields will probably break other parts of the Form plug
-
Blueprint to create select from Page Collection
· 5 years ago
@storm, The function being called must be a static function. The ones that are failing aren't. Try: $ bin/gpm install devtools $ bin/plugin devtools new-plugin Follow wizard and run $ composer update
-
Need help with checkbox customization
· 5 years ago
@01K, @pamtbaau any thoughts/solutions for it? I don't believe I've received an order confirmation yet....
-
How to set lazy loading in Twig template
· 5 years ago
@pilot23, So far, not much information is provided accept for "without effect" or "without lazyload effect". When I add 300 images of 1200x800px to the bottom of page Typography (fresh Grav 1.7.30 ins
-
Moved my matomo code to a file instead of inline, grav.user.username does not work anymore
· 5 years ago
@Japhy, Alternatively, you could do: Create file /user/config/mtm.yaml containing: script: | var _mtm = _mtm || []; _mtm.push({'setUserId': '{{ grav.user.username }}', ... domain: https://domain.
-
Need help with checkbox customization
· 5 years ago
@01K, Changing the form definition is irrelevant. But the change probably caused a clearing of the cache which made the change to the template visible.
-
Moved my matomo code to a file instead of inline, grav.user.username does not work anymore
· 5 years ago
@Japhy, That script will not be parsed by Twig but instead added 'as-is'. Try {{ include(template_from_string(read_file('theme://js/mtm.js'))) }} See: https://learn.getgrav.org/17/themes/twig-tags-fi
-
Moved my matomo code to a file instead of inline, grav.user.username does not work anymore
· 5 years ago
@Japhy, You said: I have always had my mtm code inline but ... I thought it would be a good idea to move it to a file. What file? In which template is the file included?