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 · 519 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 stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 320 3 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago