Created
May 15, 2019 17:23
-
-
Save svparijs/32e0b865da91b2317e8163ad01cd9043 to your computer and use it in GitHub Desktop.
Prevent divs wrapping for contentcollections / change their css classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page = Page { | |
body { | |
// These are your content areas, you can define as many as you want, just name them and the nodePath. | |
content { | |
// The default content section | |
main = PrimaryContent { | |
nodePath = 'main' | |
} | |
// A footer ContentCollection | |
footer = ContentCollection { | |
nodePath = 'footer' | |
// prevent adding default css class .neos-contentcollection | |
[email protected] > | |
// add custom css classes | |
attributes.class = 'ui fluid container' | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(Neos.Neos:PrimaryContent) { | |
default.renderer { | |
attributes.class = 'main-content' | |
[email protected] > | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prototype(Neos.Neos:PrimaryContent) { | |
// add a new case definition for your page | |
mypage { | |
condition = ${q(node).is('[instanceof My.Package:MyPage]')} | |
renderer = Neos.Neos:ContentCollection { | |
nodePath = ${nodePath} | |
attributes.class = 'my-css another-class' | |
[email protected] > | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment