My fragment is contained in a div:
I want to hide the fragment if the Fragment Text is empty, but doing this causes errors:
Is there a work around anyone can think of?
Thank you
Code:
<div class="col-md-12 product-details"> <div class="thumbnail"> <actinic:block if="%3cactinic%3avariable%20name%3d%22FragmentImageFileName%22%20%2f%3e%20%21%3d%20%22%22"> <actinic:variable formatting="div,style|set-right" name="FragmentImage" /> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22FragmentTitle%22%20%2f%3e%20%21%3d%20%22%22"> <actinic:variable formatting="h2" name="FragmentTitle" /> </actinic:block> <actinic:variable formatting="div,style|fragment-text" name="FragmentText" /> <div class="clearfloat"></div> </div> </div>
Code:
<div class="col-md-12 product-details"<actinic:block if="%3cactinic%3avariable%20name%3d%22FragmentText%22%20%2f%3e%20%3d%3d%20%22%22"> style="display:none;"</actinic:block>>
Thank you
Comment