Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Where to override plugin blueprints?
· 10 years ago
I want to override the values found in plugins/admin/blueprints/admin/pages/new.yaml - where do i put a blueprint file to override that one that won't be overwritten every time the plugin is updated?
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
I'm a RTFM kinda guy. But documentation can be poorly organized or answers worded in ways that defy searching. When I ask a question on a forum, I'm quite content to be linked the correct point in the
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
I personally don't like that the within our time everything is token as granted. I type in a question and want to have the right answer specifically to my needs as quick as possible. There were times
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
Twig is really quit simple once you get the basics. The way I learned it originally (quite a few years ago!) was to go over the "Twig for Designers" Page. It's one page that basically covers all the
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
I didn't mean to annoy you. The page I linked to does indeed have the answer: "If no argument is passed, the function returns the current date," so date(). Teach people to fish and all that. No master
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
It would have been just as easy for you to give up the answer rather than pointing to the docs... The docs don't have an entry, "Display the current date." However thanks to the folks at stackoverflow
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
Have you looked at the Twig documentation? Specifically the date function?
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
Ok, then let's say you wanted to use twig to add the date or time, what would the syntax be? I'm looking through a lot of documentation but having trouble finding an example.
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
To use twig in a page you have to activate twig in that page. See https://learn.getgrav.org/content/headers#process
-
A bit confused about TWIG and dynamic content in a page
· 10 years ago
Is there a way to use twig to add simple things to pages such as the current server time, or does all scripting (apart from javascript) have to be done in the templates? I know this is a super basic q