{title url="tiki-edit_structure.php?page_ref_id=$page_ref_id"}{tr}Structure:{/tr} {$structure_name}{/title}
{button href="tiki-admin_structures.php" _text="{tr}Structures{/tr}"}
{if $remove eq 'y'} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}You will remove{/tr} '{$removePageName}' {if $page_removable == 'y'}{tr}and its subpages from the structure, now you have two options:{/tr}{else}{tr}and its subpages from the structure{/tr}{/if}
{icon name="remove"} {tr}Remove from structure{/tr} {if $page_removable == 'y'} {icon name="delete"} {tr}Remove from structure and remove page too{/tr} {/if}
{/remarksbox} {/if} {if $alert_exists eq 'y'} {tr}The page already exists. The page that has been added to the structure is the existing one.{/tr}
{/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="warning" title="{tr}Warning{/tr}"} {tr}The following pages added 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}

{tr}Structure Layout{/tr}

{if $editable eq 'y'}
{* modified version of row from structures_toc-leaf.tpl *} {if $prefs.lock_wiki_structures eq 'y'} {lock type='wiki structure' object=$structure_name} {/if} {self_link _script='tiki-index.php' page=$structure_name structure=$structure_name _class="tips btn btn-link btn-sm" _title=":{tr}View{/tr}" _noauto="y"} {icon name="view"} {/self_link} {if $tiki_p_admin_structures == 'y'} {permission_link mode=icon objectType='wiki page' type='wiki structure' id=$pageName title=$pageName} {/if} {if $tiki_p_watch_structure eq 'y'} {if !$page_info.watching} {self_link page_ref_id=$page_ref_id watch_object=$page_ref_id watch_action=add page=$structure_name _class="tips btn btn-link btn-sm" _title=":{tr}Monitor the structure{/tr}"} {icon name="watch"} {/self_link} {else} {self_link page_ref_id=$page_ref_id watch_object=$page_ref_id watch_action=remove _class="tips btn btn-link btn-sm" _title=":{tr}Stop Monitoring the structure{/tr}"} {icon name="stop-watching"} {/self_link} {/if} {/if} {if $editable eq 'y'} {if $page_info.flag == 'L'} {capture assign=title}{tr _0=$page_info.user}locked by %0{/tr}{/capture} {icon name='lock' alt="{tr}Locked{/tr}" title=$title} {else} {self_link _script='tiki-editpage.php' page=$structure_name _class='tips btn btn-link btn-sm' _title=':{tr}Edit page{/tr}'} {icon name="edit"} {/self_link} {/if} {if empty($page)} {self_link _onclick="addNewPage(this);return false;" _class="tips btn btn-link btn-sm" _title=":{tr}Add new child page{/tr}"} {icon name="add"} {/self_link} {/if} {/if} {/if}
{self_link page_ref_id=$structure_id} {if $structure_id eq $page_ref_id}{/if} {tr}Top{/tr} {if $structure_id eq $page_ref_id}{/if} {/self_link}
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _type="primary" _ajax="n" _auto_args="save_structure,page_ref_id"}
{$nodelist}
{button _text="{tr}Save{/tr}" _style="display:none;" _class="save_structure" _type="primary" _ajax="n" _auto_args="save_structure,page_ref_id"} {if $editable == 'y'}
{tr}Add pages{/tr} {tr}Use an existing page by dragging it into the structure above{/tr}
{autocomplete element='#find_objects' type='pagename'}
{if $prefs.feature_categories eq 'y'}
{/if}
    {foreach $listpages.data as $aPage}
  • {$aPage.pageName|escape}
  • {/foreach}
{pagination_links cant=$listpages.cant step=$maxRecords offset=$offset}{/pagination_links}
{if $prefs.feature_categories eq 'y' && $prefs.feature_wiki_categorize_structure == 'y' && $all_editable == 'y'}
{tr}Categorize all pages in structure together{/tr}
{include file='categorize.tpl'}
{/if} {/if}{* end of if structure editable *}