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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Modular page not recognised (while another is)

solved

Solved by nicolas View solution

Started by nicolas 6 years ago · 1 replies · 640 views
6 years ago

Hi,

I’m creating a new website using Grav, which has two very different modular pages (each using a different template, etc). Both are organised with subfolders starting with underscore, and have content: items: '@self.modular'. However:

As you can see the /hoeje page works well and is recognised as modular. But the/kort page is not. In the admin UI (left), you can see that the subpages are not seen as modules, their IDs are not with _ and the template does not refer to modular/. But actual folders (right) have the underscores and are no different to the /hoeje page.

Does someone has an idea of what is going wrong? What does Grav uses to determine if a page is modular or not? I’m meant to finish this website tomorrow and I cannot make any progress while this page is not set-up correctly.

Thanks!

6 years ago Solution

False alert: the reason was that these subpages had a slug in their front matter. Now that I removed these, it’s working.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago