Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

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 · 878 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 Andy Miller, 1 week ago
0 139 1 week ago
General · by lynbor, 1 month ago
3 454 2 weeks ago
General · by lynbor, 3 weeks ago
7 588 2 weeks ago
General · by Harry, 2 weeks ago
0 176 2 weeks ago
General · by Old Man Umby, 1 month ago
2 318 4 weeks ago