Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
How to render content in different blocks
· 10 years ago
Thanks! That's what i needed. I slightly changed the code to have the if statement test the "Page" instead of the content, makes more sense to me to do it this way. {% set footerpage = pages.find('
-
How to render content in different blocks
· 10 years ago
Yup, that's perfectly legit! Might wan to use another variable so it doesn't conflict with the content that is set in Twig vars, but other than that it's good.
-
How to render content in different blocks
· 10 years ago
Alright! {% block footer %} {% set content = pages.find('/footer').content %} {% if content %} <footer id="footer"> <div class="row sg-center">
-
How to render content in different blocks
· 10 years ago
stick your code into a footer partial. Have a look at the Bones Skeleton , they have a good example how this can be achieved.
-
How to render content in different blocks
· 10 years ago
Still having a problem to wrap my head around. I can't get over it that there SEEMS to be only the {{ page.content }} variable where everything from the folder 'pages' goes. Am I right about that? I m
-
How to render content in different blocks
· 10 years ago
Thanks. I ended up doing that.
-
How to render content in different blocks
· 10 years ago
Sounds like you might want to look at modular page types for your homepage. That way you can build a page with multiple markdown files for different areas of your homepage, each with their own twig f
-
How to render content in different blocks
· 10 years ago
I understand that everything inside the pages folder is being rendered in the content block. But I also have different types of content that I would like to render in another block. For instance: I am
-
How to do 'if siblings' then
· 10 years ago
oh, but you can just change it like that {% if page.isLast != true %} {# show nothing #} {% else %} {# show siblings #} {% endif %} I also think about this solution if you prefer: {% if page.parent
-
How to do 'if siblings' then
· 10 years ago
Hey I don't think this will work because I want to show a navigation of all sibling pages ON all the sibling pages - so this would work on all the sibling pages except the last one and so it wouldn't