pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3184 posts · 17 topics · 1019 reputation
Badges
Recent posts
-
Efficient condition to not display reading time when reading time is 0 minutes
· 6 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
· 6 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
· 6 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
· 6 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
· 6 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
· 6 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?
· 6 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?
· 6 years ago
@Netzhexe, Sorry, too quick... I'll have to rethink
-
How do I modify the confirmation message after form submit?
· 6 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_
-
Multilanguage forms missing until cache is cleared
· 6 years ago
@Karmalakas, To be honest.... I'm afraid I couldn't follow the into 😇 Your demo does not match your intro. They seem different stories. The intro is quite long-winded and not succinct. You didn't mak