Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
MultiLang support for theme Learn2
· 11 years ago
Thanks.... It's working, I have included the langswitcher in the base.html.twig
-
MultiLang support for theme Learn2
· 11 years ago
Did you read the README.md on the LangSwitcher project? You basically just need to include the twig template. It probably makes sense to do this in the sidebar of the theme, or perhaps at the top of
-
MultiLang support for theme Learn2
· 11 years ago
I have managed to setup multilang site but unable to display the language swither. How to enable language switcher plugin on theme learn2 (rtfm skeleton)?
-
Loop to add children pages as dropdown
· 11 years ago
Have you looked at the skeleton sites? For example, the "Photographer Site" has a working submenu. You can see the code in the navigation.html.twig partial. You have to put a child loop within your p
-
Loop to add children pages as dropdown
· 11 years ago
Howdy all. I'm a pretty new Grav user and I came across this for-loop in the theme tutorial for adding top-level pages to a menu. How would I alter this so that it grabs the children of a specific top
-
Display dynamic page content on every page?
· 11 years ago
There are a variety of methods on the Page object. As this method relates to page types specifically, it makes sense to encapsulate that logic in the Page object itself. Really it's a personal prefe
-
Display dynamic page content on every page?
· 11 years ago
Yep, this is pretty much what I was looking for, thanks! It's a little unintuitive (to me, anyway) to look for other page data using the current page. I was expecting something more along the lines of
-
Display dynamic page content on every page?
· 11 years ago
It sort of depends where you are going to store and therefor read this event information. If you are storing this in the page header of a specific page, you could create a small twig template that sim
-
Display dynamic page content on every page?
· 11 years ago
I'm making a website for a local event (that happens monthly), and I want to have the date and location of the next event in the header and sidebar of every page. Having read the documentation, it doe
-
Antimatter - Header image on standard pages
· 11 years ago
So with a little trial and error I got it working with (mytemplate.html.twig): {% extends 'partials/base.html.twig' %} {% block content %} <div class="flush-top" style="background-image: u