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

Modular template subpages ordering

Started by Muut Archive 10 years ago · 4 replies · 580 views
10 years ago

I'm trying to reorder modular pages which are listed under another modular page. My Problem is that I have to set an ordering in the parent so I can't drag&drop the pages like I'm able to do this on root level. Maybe I'm overlooking something simple but is it possible to make the order in the header only relevant for _modular elements or to enable the drag&drop functionality on the _modular elements too so I am able to push all elements like I want them to be ordered?

TXT

modular
--_1modular-element
--_2modular-element
--modular
--modular
---
10 years ago

I don't think you can nest modular page into each other, but I never tried actually

10 years ago

Actually it works pretty well expect the ordering. Okay i try to figure it out somehow, thanks :)

10 years ago

Seem you can number prefix for sub folder with enabling in option pane (not a typing named folder) then config ordering by folder.

10 years ago

okay i had already set the ordering to folders. Now my page header looks like that

YAML
title: Home
content:
    order:
        by: folder
        dir: asc
modulars:
    items: '@self.modular'

The Problem was were the items in content. Honestly I don't really know why, but now I can rearrange the pages like i want easily per drag & drop. _modulars are still ordered after folder names so everything is working fine.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1370 9 years ago
Archive · by Muut Archive, 9 years ago
2 943 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1127 9 years ago