To remove default wrap around image, i have used this template code:
tt_content.image.20.rendering.noWraps {
imageRowStdWrap.dataWrap = |
noRowsStdWrap.wrap = |
oneImageStdWrap.dataWrap = |
imgTagStdWrap.wrap = |
editIconsStdWrap.wrap = |
caption.wrap = |
}
# Set this as active rendering method
tt_content.image.20.renderMethod = noWraps
I want to override it above codes for a specific section.
Here is my code to do so:
SCREENSHOTS<styles.content.get
SCREENSHOTS.select.where = colPos = 9
SCREENSHOTS.renderObj.dataWrap = <div class="screen">|</div>
It doesn't work. How to do it?
According to the documentation for the CONTENT object:
Since you declare
SCREENSHOTS.renderObj.dataWrap = <div class="screen">|</div>
you properly wont have any configuration automatically copied to yourrenderObj
.If I understand your goal correct then you wish to remove all wraps around 'image only' content element and wrap it all in one div tag
<div class="screen">|</div>
. The following is untested but should work if your provided first code blocked worked for all your 'image only' content elements.If the above code dose not work then just write a comment and then I will take a look into it.