{php} $this->assign('hasOther', $GLOBALS['hasOther']); {/php} {if $page.isOther == 'y' && $hasOther == false}
Additional Pages (Add new page)
{php} $GLOBALS['hasOther'] = true; {/php} {/if} {strip}
{strip} {if $page.source == 'virtual'} {$page.menuTitle|htmlspecialchars} {else} {if $page.hasDraft == 'y'}*{/if} {if in_array($page.id, array(2, 3, 4, 13))}{$page.menuTitle|htmlspecialchars}{else}{$page.menuTitle|htmlspecialchars}{/if} {/if} {if $page.rightSub} {capture assign = "rightSub"} {foreach from = $page.rightSub item = rightSub name = 'rightSub'} {if $rightSub.menuTitle} {$rightSub.menuTitle|htmlspecialchars}{if !$smarty.foreach.rightSub.last} | {/if} {/if} {/foreach} {/capture} {if $rightSub} {/if} {else}      {*if $level < 2*} {if $page.final == 'n'} add subpage{if count($page.sub) > 1 || $page.allowDelete == 'y'} | {/if} {/if} {*/if*} {assign var='showSub' value=false} {foreach from = $page.sub item = sub} {if $sub.source != 'virtual'} {assign var='showSub' value=true} {/if} {/foreach} {if count($page.sub) > 1 && $showSub} reorder subpages{if $page.allowDelete == 'y'} | {/if} {/if} {if $page.allowDelete == 'y'} delete {/if} {/if}
{/strip} {math assign = 'level' equation = 'x + 1' x = $level} {include file = "Cms/sitemap-list.tpl"|SMGetTemplate siteMap = $page.sub level = $level}
{/strip}