Hi everyone,
I have a e.g. a two col grid and now I want to change a property of e.g. an image based on the Column it is placed in. How do I determine in which col my image is placed?
The columns are of type ContentCollection. Or would be the solution that I have to create a separate NodeType vor each column like ContentCollectionCol0
and ContentCollectionCol1
or can I do something like
prototype(My.Grid:TwoColumns) {
# children: column0
prototype(Neos.Fusion:ContentCollection)[0] {
prototype(My.Package:Image) {
width = 200
}
}
# children: column1
prototype(Neos.Fusion:ContentCollection)[1] {
prototype(My.Package:Image) {
width = 400
}
}
}
a solution could be the following, but I was wondering if this is necessary:
prototype(My.Grid:TwoColumns) {
# children: column0
prototype(My.Grid:Column0) {
prototype(My.Package:Image) {
width = 200
}
}
# children: column1
prototype(My.Grid:Column1) {
prototype(My.Package:Image) {
width = 400
}
}
}