Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Templating: is it right?
· 11 years ago
This is my template file item.html.twig {% extends 'partials/base.html.twig' %} {% block content %} <div class="flex-container content"> <div class="flex-box subpage-title"> {{
-
Checking if current page is root page
· 11 years ago
You will need to turn on the Grav debugger and look in the messages panel. See these docs
-
Checking if current page is root page
· 11 years ago
I'm new to grav debugging. so i have an open ear !!! and a curious mind !
-
Checking if current page is root page
· 11 years ago
but thank you!
-
Checking if current page is root page
· 11 years ago
where can i see the dumped values ?&quest;
-
Checking if current page is root page
· 11 years ago
Try dumping the values and comparing them on your local and server: {{ dump (page.url) }} {{ dump (base_url) }} {{ dump (page.root) }}
-
Checking if current page is root page
· 11 years ago
{% if page.url == base_url %} and {% if page.root %} do not work for me when I load my grav system up to the server !!! these both only work on my local server (MAMP) ....
-
Checking if current page is root page
· 11 years ago
ah okay thanks !
-
Checking if current page is root page
· 11 years ago
Actually should be able to just use: {% if page.root %}
-
Checking if current page is root page
· 11 years ago
{% if page.url == base_url %} ---