Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Sort page media?
· 9 years ago
Yeah, it takes a bit to get used to, but it is awesome to use. But, to answer your questions, the blueprints is correct. I believe I used this when I was learning about blueprints. As for the templat
-
Sort page media?
· 9 years ago
Wow, that looks very intriguing! I'm not well versed with Grav yet so bear with me. The header.imageList code would go into a blueprint file, e.g. mytheme/blueprints/gallery.yaml (if gallery.md/html.
-
Sort page media?
· 9 years ago
Depending on what you need, you could use a list of images instead of the page media field. It will allow you to order the images however you want. Here's what I use for the blueprint. header.imageLis
-
Sort page media?
· 9 years ago
How do I sort media files uploaded to my page? I couldn't find any documentation on that. By default, they're sorted by filename it seems, both in the Admin Panel (where it makes little sense) and whe
-
Get user's name and show on home page
· 9 years ago
Hi, I would start looking at grav login plugin. check the template file such as templates/partials/login-status.html.twig. You will see that you can use the following: {{ grav.user.username }} {{ grav
-
Get user's name and show on home page
· 9 years ago
Use {{ grav.user.username }} and the other properties of the User object (you can check which ones are availble by doing {{dump(grav.user)}} with the debug bar.
-
Get user's name and show on home page
· 9 years ago
Hi I'm trying to get my bearings with Grav, a lot to learn so I'm just playing about at the moment and trying to create a dummy theme. I've been using lines like {{ page.summary }} to display content
-
Template Doesn't Update Until Save from Admin
· 9 years ago
Yep, Twig cache was enabled and that did it. Keeping that off for development. Thanks!
-
Template Doesn't Update Until Save from Admin
· 9 years ago
Hi, most likely the Twig cache is enabled, and it's not re-triggered for refresh until the page is saved. Clear the cache manually and it should work.
-
Template Doesn't Update Until Save from Admin
· 9 years ago
I just noticed some odd behavior, and wanted to check if that is how is intended to be. Whenever I update a twig file for a page, I have to go to the page in the admin and save each page if I want th