Riva Posted June 2, 2012 Share Posted June 2, 2012 (edited) Не получается вывести последний столбик карты сайта "страницы" в footer Ввывожу как и в sitemap.tpl <div class="extra_footer"> <h3>{l s='Страницы'}</h3> <ul> {if isset($categoriescmsTree.children)} {foreach from=$categoriescmsTree.children item=child name=sitemapCmsTree} {if (isset($child.children) && $child.children|@count > 0) || $child.cms|@count > 0} {include file="$tpl_dir./category-cms-tree-branch.tpl" node=$child} {/if} {/foreach} {/if} {foreach from=$categoriescmsTree.cms item=cms name=cmsTree} <li><a href="{$cms.link|escape:'htmlall':'UTF-8'}" title="{$cms.meta_title|escape:'htmlall':'UTF-8'}">{$cms.meta_title|escape:'htmlall':'UTF-8'}</a></li> {/foreach} {if $display_store}<li><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores'}">{l s='Our stores'}</a></li>{/if} <li class="last"><a href="{$link->getPageLink('contact-form.php', true)}">{l s='Contact'}</a></li></ul> </div> Где ошибка? Edited June 6, 2012 by Riva (see edit history) Link to comment Share on other sites More sharing options...
Riva Posted June 5, 2012 Author Share Posted June 5, 2012 Что никто не знает? Link to comment Share on other sites More sharing options...
wagood Posted June 5, 2012 Share Posted June 5, 2012 Я знаю. categoriescmsTree есть только в SitemapController, поэтому вывода нет на остальных страницах. 1 Link to comment Share on other sites More sharing options...
Riva Posted June 6, 2012 Author Share Posted June 6, 2012 Спасибо за наводку, всё заработало Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now