{assign var = 'siteMap' value = $item->siteMap} {php} $GLOBALS['hasAdditional'] = false; {/php}
{php} $GLOBALS['total_index'] = 0; $GLOBALS['total_count'] = $this->_tpl_vars['item']->siteMapPagesCount; $GLOBALS['break'] = 0; {/php} {foreach from = $siteMap item = 'page'} {php} $GLOBALS['total_index'] = $GLOBALS['total_index'] + 1; {/php} {include file="Cms/sitemap-item.tpl"|SMGetTemplate} {php} if($GLOBALS['total_index'] > $GLOBALS['total_count']/2 && $GLOBALS['break'] == 0) { echo ''; $GLOBALS['break'] = 1; } {/php} {/foreach} {php} $this->assign('hasAdditional', $GLOBALS['hasAdditional']); {/php} {if $hasAdditional == false && $item->additionalPages == true}
Additional Pages      Add Page
There are currently no additional pages.
{/if}
* Pages that have drafts