问题
I tried to change the MaxGalleryWidth
in fluid_styled_content for an specific column.
First I tried how I do this before fluid_styled_content:
lib.contentRight = COA
lib.contentRight {
10 = LOAD_REGISTER
10 {
maxImageWidth = 205
maxImageWidthInText = 60
}
20 < styles.content.get
20 {
select {
where = colPos=1
}
slide = -1
}
90 = RESTORE_REGISTER
}
Also using maxGalleryWidth
in LOAD_REGISTER
has no effect.
This doesn't work for me. Than I tried to set the maxGalleryWidth
Parameter for the GalleryProcessor, but this seems not to have any effect:
lib.contentRight < styles.content.get
lib.contentRight {
select {
where = colPos=1
}
slide = -1
renderObj = < tt_content
renderObj.textmedia.dataProcessing.20 {
maxGalleryWidth = 205
maxGalleryWidthInText = 60
}
}
Finaly I got it only to work with an override
and if
condition:
tt_content.textmedia.dataProcessing.20 {
maxGalleryWidth.override.cObject = TEXT
maxGalleryWidth.override.cObject {
value = 205
if {
value = 1
equals.field = colPos
}
}
maxGalleryWidthInText.override.cObject = TEXT
maxGalleryWidthInText.override.cObject {
value = 60
if {
value = 1
equals.field = colPos
}
}
}
For me it looks wrong, are there other ways to realize it correctly without using override
?
来源:https://stackoverflow.com/questions/39663830/maxgallerywidth-for-fluid-styled-content