Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Unable to see the modules attached to a page

admin first-time

Solved by kaz View solution

Started by kaz 6 years ago · 4 replies · 971 views
6 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.

6 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.

6 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 themetman, 1 day ago
2 42 20 hours ago
General · by Hanns Mattes, 1 week ago
0 123 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago