Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
GPM not functioning
· 10 years ago
I am unable to use any GPM commands to install admin panel or other stuff. I also believe I have installed all dependencies, php -v output is as follows: PHP 5.5.9-1ubuntu4.14 (cli) (built: Oct 28 201
-
500 Errors with Hostgator
· 10 years ago
Everytime i get 500 i have problem with rights to directories. You need to be sure that Apache (or another service) has rights to go into directories and some write to. Maybe you have some more genera
-
500 Errors with Hostgator
· 10 years ago
I am trying to install Grav onto my hostgator site and I am running into the 500 Internal error problems. I've try evertyhing listed on the trouble shooting doc but couldn't resolve the issue. Anyone
-
Pages object from modular template?
· 10 years ago
THANK YOU! Jeez that was messing with my head. You're a god among insects! :)
-
Pages object from modular template?
· 10 years ago
Ouch! You're right it seems the pages object is not directly accessible in modular childs. Use {% for page in grav.pages.root.children %} {{ page.title }} {% endfor %}
-
Pages object from modular template?
· 10 years ago
lol, we've come full circle.. if you see the top of my post, I did exactly that. The problem is that it doesnt work from a template in templates/modular/template.html.twig
-
Pages object from modular template?
· 10 years ago
My mistake. pages is a link to the root page (/users/pages/) so you can do {% for page in pages.children %} {{ page.title }} {% endfor %}
-
Pages object from modular template?
· 10 years ago
I guess I'd need a code example to make pages.all work, cause it's not.
-
Pages object from modular template?
· 10 years ago
pages.find('/') returns the home page. You want pages.all
-
Pages object from modular template?
· 10 years ago
Ok I think we're on the right track. Actually I want the root for all the pages /users/pages/ but `pages.find('/').children' doesn't return anything.