Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Can no longer add pages using Admin Panel after upgrade to 1.1
· 10 years ago
This was fixed in Grav Admin 1.1.1
-
Can no longer add pages using Admin Panel after upgrade to 1.1
· 10 years ago
After upgrading to 1.1 I can no longer add pages through the admin panel. When I click Add Page then Continue nothing happens. How do I go about debugging this issue? All plugins are updated btw
-
Page.find('/') does not return all pages whatever the conent type?
· 10 years ago
Hi, Indeed, the correct syntax was the one of HugoAvila: {% for child in pages.children.nonModular.slice(0, 5) %} The syntax of paulmassendari produced the same output as I ;-) Thanks !
-
Page.find('/') does not return all pages whatever the conent type?
· 10 years ago
If you need to start from root and get first child pages, I believe you dont need to use find as the object pages contains those pages already. {% for child in pages.children.nonModular.slice(0, 5) %}
-
Page.find('/') does not return all pages whatever the conent type?
· 10 years ago
oh, wait, I was too quick, your syntax is correct actually. But you are telling twig to look for nonmodular children of your home page, which is probably set to 01.home, and this page does not have ch
-
Page.find('/') does not return all pages whatever the conent type?
· 10 years ago
it's just a small problem with your for loop, replace page with child and it should works; {% for child in page.find('/').children.nonModular.slice(0, 5) %} <div class="media-object"&g
-
Page.find('/') does not return all pages whatever the conent type?
· 10 years ago
Hi, I have the following structure: . ├── 01.home │ ├── modular.fr.md │ ├── _offres │ │ └── offer.fr.md │ ├── _showcase │ │ ├── bandeaux_laser.png │ │ ├── bandeaux_miniji.png │ │
-
Add class to the body/html when on error page
· 10 years ago
Solved it! In case someone is looking for same solution: In my base.html.twig I have: {% block body %} <body> {% endblock %} In my error page error.html.twig I defined a class that will be added
-
Add class to the body/html when on error page
· 10 years ago
I should add that I want to do it for .twig page, not .md page.
-
Add class to the body/html when on error page
· 10 years ago
How to add class to the body when user is on particular page? In my case this is "error" page (404/403 etc.)