{title help="Dynamic Content"}{tr}Dynamic Content System{/tr}{/title} {remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}To use content blocks in a text area (Wiki page, etc), a module or a template, use {literal}{content id=x}{/literal}, where x is the ID of the content block.{/tr} {tr}You can also use {literal}{content label=x}{/literal}, where x is the label of the content block.{/tr}{/remarksbox} {tabset} {tab name="{tr}Available content blocks{/tr}"}

{tr}Available content blocks{/tr}

{if $listpages or $find neq ''} {include file='find.tpl'} {/if}
{* table-responsive class cuts off css drop-down menus *} {section name=changes loop=$listpages} {sectionelse} {norecords _colspan=7} {/section}
{self_link _sort_arg='sort_mode' _sort_field='contentId'}{tr}Id{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='contentLabel'}{tr}Label{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='data'}{tr}Current Value{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='actual'}{tr}Current ver{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='next'}{tr}Next ver{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='future'}{tr}Future vers{/tr}{/self_link}
{$listpages[changes].contentId} {if $listpages[changes].contentLabel neq ''} {$listpages[changes].contentLabel} {/if} {if $listpages[changes].description neq ''}
{$listpages[changes].description}
{/if}
{$listpages[changes].data|escape:'html'|nl2br} {$listpages[changes].actual|tiki_short_datetime} {$listpages[changes].next|tiki_short_datetime} {$listpages[changes].future} {actions} {strip} {self_link _icon_name='edit' _menu_text='y' _menu_icon='y' edit=$listpages[changes].contentId cookietab=2} {tr}Edit{/tr} {/self_link} {icon name='cog' _menu_text='y' _menu_icon='y' alt="{tr}Program{/tr}"} {self_link _icon_name='remove' _menu_text='y' _menu_icon='y' _template='confirm.tpl' remove=$listpages[changes].contentId} {tr}Remove{/tr} {/self_link} {/strip} {/actions}
{pagination_links cant=$cant step=$prefs.maxRecords offset=$offset}{/pagination_links} {/tab} {tab name="{tr}Create/Edit content block{/tr}"}

{if $contentId} {tr}Edit content block{/tr} {else} {tr}Create content block{/tr} {/if}

{if $contentId ne ''}
{button href="tiki-list_contents.php" class="btn btn-primary" _text="{tr}Create New Block{/tr}"}
{/if}
{query _type='form_input'}
{/tab} {/tabset}