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

Unable to see the modules attached to a page

admin first-time

Solved by kaz View solution

Started by kaz 5 years ago · 4 replies · 670 views
5 years ago

hello @pamtbaau ,

Thank you for your very quick response!

@pamtbaau:
If so, did you create the collection definition in the primary page?

I have no modular.html.twig file in my directory. So i created one with inside:

TWIG
{% for module in page.collection() %}
{{ module.content|raw }}
{% endfor %}

And it did help!
But how do i indicate on the primary page (with admin panel) to create a collection so that i don't need to create the file modular.html.twig myself ?

Anyway, thank you already ;)

f.

5 years ago

@fab, I'm afraid I cannot follow you...

You might consider downloading the skeleton One-Page Site and see how the modular page is constructed.

5 years ago Solution

shame

forget about the modular.html.twig file. It already exists where it has to.
I just make my main modular page visible and all the modular stuffs appears.

Thank you for make me think harder ;)

f.

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 21 hours ago
1 29 14 hours ago
General · by Andy Miller, 14 hours ago
0 27 14 hours ago
General · by Jerry Hunt, 5 days ago
2 145 2 days ago
General · by pamtbaau, 2 days ago
1 96 2 days ago
General · by Andy Miller, 2 days ago
0 81 2 days ago