Skip to content
Grav 2.1 is out: every page speaks Markdown. 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 · 843 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 jeremycherfas, 2 weeks ago
5 200 11 hours ago
General · by lynbor, 6 days ago
2 131 3 days ago
General · by Old Man Umby, 1 week ago
1 106 1 week ago
General · by Sebastian, 2 weeks ago
1 131 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 254 3 weeks ago