pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3134 posts · 12 topics · 1013 reputation
Badges
Recent posts
-
"home" item is not translated in a bilingual website
· 5 years ago
@maria, what else can I do? You could provide the following info: What does the 'languages' section in 'system.yaml' look like? What is the frontmatter in '01.home/default.en.md' and '01.home/defa
-
Efficient condition to not display reading time when reading time is 0 minutes
· 5 years ago
@AquaL1te, In Twig, the constuct config.plugins.page-toc.enabled is interpreted as config.plugins.page - toc.enabled. The value of the substraction is probably not what you are after... When a plugin/
-
Efficient condition to not display reading time when reading time is 0 minutes
· 5 years ago
@AquaL1te, That's also probably the reason why you use page.readingtime.active. For consistency I would prefer page.readingtime.enabled Grav keeps on developing and therefor older plugins/themes may n
-
Efficient condition to not display reading time when reading time is 0 minutes
· 5 years ago
@AquaL1te, Try the following: {% if config.plugins.readingtime.enabled or page.header.readingtime.active %} {% set readingTime = page.content|readingtime %} {% if not (readingTime starts with '0'
-
Latest tweets plugin not showing as enabled in twig
· 5 years ago
@louigi , {% if config.plugins.latest-tweets.enabled %} is evaluating the result of substracting the values 'config.plugins.latest' and 'tweets.enabled', which is probably not what you want. If you wa
-
Best way to make use of the lightbox + center images
· 5 years ago
@AquaL1te Why? From stackoverflow: The image is display: inline so it is treated like a character and sits on the baseline. The gap is caused by the space provided for the descender (which you find
-
Multilanguage forms missing until cache is cleared
· 5 years ago
@Karmalakas, Updated previous post by adding another alternative to include form: forms({ 'route': page.route ~ '/form')
-
How do I modify the confirmation message after form submit?
· 5 years ago
@Netzhexe , Looking in the debugger at the definition of the Form object, it also seems to have a property 'message'. Updating that field seems to work. Try: $event['form']['message'] = 'Your vote c
-
How do I modify the confirmation message after form submit?
· 5 years ago
@Netzhexe, Sorry, too quick... I'll have to rethink
-
How do I modify the confirmation message after form submit?
· 5 years ago
@Netzhexe, Just a quick guess... Can't you use a regular translation in the form definition? In the form: message: CONTACT_FORM.THANK_YOU And in the 'languages.yaml' file: en: CONTACT_FORM: THANK_