pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3183 posts · 17 topics · 1019 reputation
Badges
Recent posts
-
Moved my matomo code to a file instead of inline, grav.user.username does not work anymore
· 4 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
· 4 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
· 4 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
· 4 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?
-
Need help with checkbox customization
· 4 years ago
@01K, You're not really showing what changes you have made and what HTML has been generated. That means I cannot reproduce your case, and therefor I cannot see where anything might have gone wrong on
-
"Header Options" in Blog-Item with no effect
· 4 years ago
@idna, Did a quick search in Quarks templates, but nowhere is field header.header_image being referred, apart from the blueprint. So, I guess it is not being used (any longer)...
-
Need help with checkbox customization
· 4 years ago
@01K, Truly I’ve tried to override checkboxes.html.twig . I’ve copied the checkboxes.html.twig file into the child-theme\templates\forms\fields\checkboxes\checkboxes.html.twig but it seems that this
-
Grav Won't Let Me Access the Login Page
· 4 years ago
@heyheathermae, From the little information you've provided, I can only suggest to run: $ bin/gpm install form
-
Need help with checkbox customization
· 4 years ago
@01K, A remark and a kind request... Remark: You said: Now by default Grav displays checkboxes with this markup: When I use your field definition I get a totally different HTML layout. By default
-
Theme variable base_url_simple
· 4 years ago
@sdesergi, Misunderstandings happen... Next time, when asking a question, you might consider to share: What you are trying to achieve. What the result should look like. What you have tried. What the