When adding Mask
content element it doesn't reflect some setting of the Appearance
tab at front-end, like Layout
, Frame
, Space Before
or After
, also it doesn't include the uid of content element. How can I make usage of these fields?
By default Mask elements do not use standard wrapping for rendering the content element, fortunately you can easily access them within data
variable which contains array of tt_content
.
To check what fields of tt_content
are available just put the line in FE template of your Mask element:
<f:debug>{data}</f:debug>
So you can make the wrapper div
by yourself using simple Fluid syntax
<div class="
{f:if(condition: data.layout, then: 'frame-layout-{data.layout}')}
{f:if(condition: data.frame_class, then: 'frame-{data.frame_class}')}
{f:if(condition: data.space_before_class, then: 'frame-space-before-{data.space_before_class}')}
{f:if(condition: data.space_after_class, then: 'frame-space-after-{data.space_after_class}')} ">
<!-- your markup here -->
</div>