{* $Id$ *} {title help="Structures"}{tr}Structures{/tr}{/title} {if $tiki_p_admin eq 'y'}
{icon name="zip"} {tr}XML Zip Import{/tr}
{/if} {if $just_created neq 'n' && $tiki_p_edit_structures == 'y'} {remarksbox type="feedback" title="{tr}Feedback{/tr}"} {tr}Structure created:{/tr} {$just_created_name|escape} {icon name="view"} {/remarksbox} {/if} {if $askremove eq 'y'} {remarksbox type='confirm' title="{tr}Please Confirm{/tr}"} {tr}You will remove structure:{/tr} {$removename|escape}
{button href="?rremove=$remove&page=$removename" _text="{tr}Destroy the structure leaving the wiki pages{/tr}"} {if $tiki_p_remove == 'y'} {button href="?rremovex=$remove&page=$removename" _text="{tr}Destroy the structure and remove the pages{/tr}"} {/if} {/remarksbox} {/if} {if count($alert_in_st) > 0} {remarksbox type='warning' title="{tr}Warning{/tr}"} {tr}Note that the following pages are also part of another structure. Make sure that access permissions (if any) do not conflict:{/tr} {foreach from=$alert_in_st item=thest}   {$thest} {/foreach} {/remarksbox} {/if} {if count($alert_categorized) > 0} {remarksbox type='feedback' title="{tr}Feedback{/tr}"} {tr}The following pages have automatically been categorized with the same categories as the structure:{/tr} {foreach from=$alert_categorized item=thecat}   {$thecat} {/foreach} {/remarksbox} {/if} {if count($alert_to_remove_cats) > 0} {remarksbox type='warning' title="{tr}Warning{/tr}"} {tr}The following pages have categories but the structure has none. You may wish to uncategorize them to be consistent:{/tr} {foreach from=$alert_to_remove_cats item=thecat}   {$thecat} {/foreach} {/remarksbox} {/if} {if count($alert_to_remove_extra_cats) > 0} {remarksbox type='warning' title="{tr}Warning{/tr}"} {tr}The following pages are in categories that the structure is not in. You may wish to recategorize them in order to be consistent:{/tr} {foreach from=$alert_to_remove_extra_cats item=theextracat}   {$theextracat} {/foreach} {/remarksbox} {/if} {if !empty($error)} {remarksbox type='warning' title="{tr}Error{/tr}"} {$error|escape} {/remarksbox} {/if} {tabset} {tab name="{tr}Existing Structures{/tr}"}

{tr}Existing Structures{/tr}

{if $channels or ($find ne '')}
{include file='find.tpl' find_show_languages='y' find_show_categories='y' find_show_num_rows='y'}
{/if}
{* table-responsive class cuts off css drop-down menus *} {if $tiki_p_admin eq 'y'}{/if} {section loop=$channels name=ix} {if $tiki_p_admin eq 'y'} {/if} {sectionelse} {if $tiki_p_admin eq 'y'}{norecords _colspan=3}{else}{norecords _colspan=2}{/if} {/section}
{select_all checkbox_names='action[]'}{tr}Structure{/tr}
{$channels[ix].pageName|escape} {if $channels[ix].page_alias} ({$channels[ix].page_alias|escape}) {/if} {if $prefs.lock_wiki_structures eq 'y'} {lock type='wiki structure' object=$channels[ix].pageName} {/if} {actions} {strip} {icon name="information" _menu_text='y' _menu_icon='y' alt="{tr}View structure{/tr}"} {icon name="view" _menu_text='y' _menu_icon='y' alt="{tr}View page{/tr}"} {if $channels[ix].admin_structure == 'y' or $tiki_p_admin == 'y'} {* A check for object perm tiki_p_assign_perm_wiki_page if not admin is needed here for WYSIWYCA *} {permission_link mode=text objectType='wiki page' type='wiki structure' id=$channels[ix].pageName title=$channels[ix].pageName} {/if} {if $prefs.feature_wiki_export eq 'y' and $channels[ix].admin_structure eq 'y'} {icon name="export" _menu_text='y' _menu_icon='y' alt="{tr}Export pages{/tr}"} {/if} {if $pdf_export eq 'y'} {icon name='pdf' _menu_text='y' _menu_icon='y' alt="{tr}PDF{/tr}"} {/if} {if $channels[ix].edit_structure == 'y' or $channels[ix].admin_structure == 'y'} {icon name="structure" _menu_text='y' _menu_icon='y' alt="{tr}Dump tree{/tr}"} {/if} {if $channels[ix].admin_structure == 'y'} {icon name="remove" _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/if} {if $prefs.feature_create_webhelp == 'y' && $channels[ix].edit_structure == 'y'} {icon name="help" _menu_text='y' _menu_icon='y' alt="{tr}Create WebHelp{/tr}"} {/if} {if $prefs.feature_create_webhelp == 'y' && $channels[ix].webhelp eq 'y'} {icon name="documentation" _menu_text='y' _menu_icon='y' alt="{tr}View WebHelp{/tr}"} {/if} {if $channels[ix].admin_structure eq 'y'} {icon name="zip" _menu_text='y' _menu_icon='y' alt="{tr}XML Zip{/tr}"} {/if} {/strip} {/actions}
{if $tiki_p_admin eq 'y'}
{/if} {pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links} {/tab} {if $tiki_p_edit_structures == 'y'} {tab name="{tr}Create Structure{/tr}"}

{tr}Create Structure{/tr}

{tr}Use single spaces to indent structure levels{/tr}
{if $prefs.lock_wiki_structures eq 'y'}
{lock type='wiki structure' object=0}
{/if} {if $prefs.feature_categories eq 'y'} {include file='categorize.tpl'} {/if}
{/tab} {/if} {/tabset}