Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Create a collection of modular children in a module?

Started by Muut Archive 9 years ago · 0 replies · 1003 views
9 years ago

Hi
I've got a couple of modular pages and at the top of each one I'd like to a have a mini menu of anchor links to the different module sections.
On my page modular.twig.html I've got a page collection that works ok

TWIG
<ul class="list-inline">              
   {% for page in page.collection %}
      <li class="sqr_button"><a href="#{{ page.slug }}">{{ page.header.title }}</a></li>
   {% endfor %}
</ul>

but when I moved this into a module I get no output.
So is it really late and I should have stopped working or this isn't really possible inside a module?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2893 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago