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

Complex layout (content separation)

Started by Денис 7 years ago · 0 replies · 428 views
7 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 Pedro M, 2 months ago
4 241 2 months ago
Themes & Styling · by Ian, 2 months ago
3 123 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 488 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 75 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 156 3 months ago