I have a template in CMSMS that uses bootstrap, and i have an accordion setup, for end user to enter some content when he/she is ready.
The problem is, the accordion is setup in such a way, that editing it/adding it would involve adding HTML codes! Which isnt really an option for computer illiterate people.
So, i had the idea of adding each FAQ section to a tab in the CMS, but, in doing so, any that are left blank still display the frame of the accordion.
Is there a way to hide div's if content isnt added?
This is my markup : (section of it)
Code: Select all
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
{content block="FAQ 1 Heading" tab="FAQ 1"}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
{content block="FAQ 1 Content" tab="FAQ 1"}
</div>
</div>
</div>
Any suggestions would be most welcomed.
Many thanks
Eddy