I’ve got a modular page template set up in my theme with a couple of modules.
When I create a modular page manually by creating the required files in my user/pages folder, everything works fine. Obviously this way I’m setting up the modular structure myself manually in modular.md.
When I try to create another modular page using Admin instead of dealing with the files, there seems to be a missing feature…
I create the top level page as a modular page.
I use the ‘Add’ button top right to add 2 modules to it, being careful to match the names of the modules I have.
I add content to these modules.
But when I view the page (after clearing the cache), it’s empty.
When I look at the top level page’s frontmatter in advanced mode, all the structure I would expect to see is not there. I’m referring to this:
When I look at the top level page’s frontmatter in advanced mode, all the structure I would expect to see is not there. I’m referring to this:
Are you in Advanced mode (like you stated), or Expert mode?
I have never built a modular page in the Admin before. I actually have just crafted my first modular page (it’s a WIP), so I thought I would give this a try. I see that I need to switch it to Expert mode when viewing the top level page.
I meant expert mode. It’s quite confusing to have an ‘expert’ button and an ‘advanced’ tab…
I now found how to order the modules within the page (by enabling folder numeric prefix in the options tab of each child module) and when I clear cache, the content is now showing on the page. Yay!
So thank you for prompting me to have another look at the admin editor and its different modes. It meant that I spotted “Page ordering is disabled for this page because Folder Numeric Prefix is not enabled” which I hadn’t seen before.
But this is also confusing - if I can determine the order of the modules by enabling folder numeric prefix on all of them, and then dragdropping in their options tab, I’m not sure what the point is of the “order: custom: etc” in the modular page’s frontmatter, as shown on this page of the documentation:
Guess I should probably take the win and not worry too much about it.
All good points - my perspective on Grav is whether I can build sites for clients with it - and they would be using Admin exclusively - no file editing for them (their heads would explode).