Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Complex layout (content separation)

Started by Денис 8 years ago · 0 replies · 708 views
8 years ago

Hi, guys. Have question. I need to make a separation between the content in aside, main, hero and other sections. I have complex layout like this https://monosnap.com/file/E9pLQJ9IV3v81SaGt5Tvx5h66gtfor In documentation 15/content/modular we have a collection of modules of current page

YAML
content:
    items: '@self.modular'
    order:
        by: default
        dir: asc
        custom:
            - _showcase
            - _highlights
            - _callout
            - _features

So I decided to create several collections for each section of the layout. Like here https://monosnap.com/file/vAJQ9gcq02eN89YhN8ordKvF6Vs2dh The problem is that "@self.modular" rule take all modules of the current page. And I need only specific module or array of specific modules. How can I do that?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 193 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 111 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 206 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 324 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1523 3 weeks ago