I had tried to add an option to set content block amount at the page options, but it seems parcer wouldn't allow me to do what I want. How this could be done?
Code: Select all
<!-- TEMPLATE BLOCKS -->
{capture assign="magpagenumber"}{content block="magpagenumber" oneline="true" label="Number of magazine pages" page_tab='Header' wysiwyg='false'}{/capture}
<!-- END TEMPLATE BLOCKS -->
{if $magpagenumber > 0}
{section name=i loop=$magpagenumber}
{if $smarty.section.i.index is div by 2}
<div class="mag-page-even">
{else}
<div class="mag-page-odd">
{/if}
{$i == $smarty.section.i.iteration}
{content block="{$i} page"}
</div>
{/section}
{/if}