I saw somewhere that MySource supports it's own If Statements.
I have a nested content area in design that points to an asset listing page that randomly displays an image from a folder of images.
I want to…
If a page has a Thumbnail assigned, I do not want to display the nested content but rather the thumbnail… ??
Perhaps an If Statement is not the best approach ?
Thanks.
There are if statements available, but only when using paint layouts. Basically, you will need to:[list=1]
[*]Create a conditional keyword based on the asset thumbnail url
[*]Structure the content of your paintlayout default format bodycopy like this:
%begin_condition1%
%asset_thumbnail%
%else_condition1%
<!--
%end_condition1%
(nested content div)
%begin_condition1%
%else_condition1%
-->
%end_condition1%
%asset_contents%</pre><br />
Unfortunately you can't conditionally hide nested content divs in Matrix, hence the slightly goofy HTML comments.