Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Create a collection of modular children in a module?

Started by Muut Archive 9 years ago · 0 replies · 1400 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 2210 9 years ago
Archive · by Muut Archive, 9 years ago
2 1459 9 years ago
Archive · by Muut Archive, 9 years ago
2 4702 9 years ago
Archive · by Muut Archive, 9 years ago
1 3522 9 years ago
Archive · by Muut Archive, 9 years ago
3 1602 9 years ago