Hi Goran,
I want to use advanced content to show or hide my content blocks idea i got from your bigbuzz.
I get a problem when i try to introduce the 3 content blocks to be activated by + sign i get
string(129) "Smarty error: [in tpl_body:24 line 192]: syntax error: unclosed tag \{if} (opened line 90). (Smarty_Compiler.class.php, line 317)"
Actually I want 3 content blocks and even copying your code does not get me anywhere. I will paste the code below.
Code: Select all
content block="Activate Sidebar" description='Enter + sign to enable this field, with - this field is disabled in the frontend' oneline="true" size="1" default="-" assign="sidebar" page_tab='Sidebar Options'}{if empty($sidebar)}{assign var="sidebar" value="+"}{/if}</p>
<p>{content block="Display Three Blocks in Content" description='Enter + sign to enable this field, with - this field is disabled in the frontend' oneline="true" size="1" default="-" assign="contentblocks" page_tab='Page Options'} {if empty($contentblocks)}{assign var="contentblocks" value="+"}{/if}
<!-- start pageHeader -->
</p>
{if $sidebar == "+"}
<div class="pageSidebar">
<p>{if $sidenav == "+"}</p>
<p>{* Showing Content Blocks *}
{capture assign='fblocktitle'}{content block='First Block Title' description='This is Title field for first block' wysiwyg="false" oneline="true" page_tab='Page Options'}{/capture}
{capture assign='fblockcontent'}{content block='First Block Content' description='By entering some text in this field, a content block with 1/3 of the page width will be displayed' page_tab='Page Options'}{/capture}
{capture assign='sblocktitle'}{content block='Second Block Title' description='This is Title field for second block' wysiwyg="false" oneline="true" page_tab='Page Options'}{/capture}
{capture assign='sblockcontent'}{content block='Second Block Content' description='By entering some text in this field, a content block with 1/3 of the page width will be displayed' page_tab='Page Options'}{/capture}
{capture assign='tblocktitle'}{content block='Third Block Title' description='This is Title field for third block' wysiwyg="false" oneline="true" page_tab='Page Options'}{/capture}
{capture assign='tblockcontent'}{content block='Third Block Content' description='By entering some text in this field, a content block with 1/3 of the page width will be displayed' page_tab='Page Options'}{/capture}
{if $contentblocks == "+"}
<!-- start infoBlockGroup -->
{if ($fblocktitle)&&($fblockcontent)} </p>
</div>
<div class="pageContentSide"><div class="pageContent">
<div class="infoBlockGroup">
<h3>{$fblocktitle}</h3>
<div class="infoBlockGroupInner">
{$fblockcontent}
</div>
</div>{/if}{if ($sblocktitle)&&($sblockcontent)}
<div class="infoBlockGroup">
<h3>{$sblocktitle}</h3>
<div class="infoBlockGroupInner">
{$sblockcontent}
</div>
</div>{/if}{if ($tblocktitle)&&($tblockcontent)}
<div class="infoBlockGroup last">
<h3>{$tblocktitle}</h3>
<div class="infoBlockGroupInner">
{$tblockcontent}
</div>
</div>{/if}
<div class="clear">
</div>
<!-- end infoBlockGroup -->{/if}