pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3221 posts · 18 topics · 1023 reputation
Badges
Recent posts
-
How do I modify the confirmation message after form submit?
· 6 years ago
@Netzhexe, I could have saved you 3 days if you had payed attention 2 days ago... ;-) I don't believe the debugger or clockwork show the access modifiers (public, protected, private). But the code doe
-
Archives - Translating the date
· 6 years ago
@01K , I presume you would like to translate 'January 2021' into 'YourJanuary 2021'. Right? Create file '/user/translations/<your language>.yaml' Add: January: <January in your language>
-
Archives - Translating the date
· 6 years ago
@01K, Try the following: Fresh install of Grav 1.7.3 Add the following to frontmatter of '01.home/default.md' title: Home date: 03/03/2021 Add the following to '/user/themes/quark/templates/default.
-
Archives - Translating the date
· 6 years ago
@01K, Have you tried his suggestion? @m4rkinh0: Sorry I do not have enough knowledge to understand the cookbook yet. I would like to use the second approach.
-
Windows installation issues: 'mbstring' extension is not loaded
· 6 years ago
@nemza, Enabled mbstring in the php php.ini-development and php.ini-production files in C:\php Did you copy/rename php.ini-development or php.ini-production to php.ini? Also note that Grav cli co
-
"home" item is not translated in a bilingual website
· 6 years ago
@maria, Had a look at your site, pulled the covers... and it appears to be Gantry using a paid theme called Zenith. Which means I cannot download the theme, test it, look at its code, ... I'm afraid,
-
"home" item is not translated in a bilingual website
· 6 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
· 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'