Artx Posted August 29, 2011 Share Posted August 29, 2011 Hello, as said in description, I need to Hook CMS blocks horizontaly and show respective submenus in CMS pages. I allready have hooked CMS blocks from left column to a new hook, horizontally, at the top. * Now I need to show all categorie and page links (expanded) in every CMS page, with respect to current CMS block. * And I need a solution to show fist page in category, when clicked on category link, and CMS block link. Much thanks for any help on this . Link to comment Share on other sites More sharing options...
Artx Posted August 29, 2011 Author Share Posted August 29, 2011 I took a sample from sitemap page and put: in CMSController.php "public function process()" function those lines: self::$smarty->assign('categoriesTree', Category::getRootCategory()->recurseLiteCategTree(0)); self::$smarty->assign('categoriescmsTree', CMSCategory::getRecurseCategory(_USER_ID_LANG_, 1, 1, 1)); and in cms.tpl those lines: <ul class="tree"> {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} </ul> ...and allmoust got what I wanted, except, that it shows all of the categories, not the respective to selected cms block. Anyone knows how to modify this ? Link to comment Share on other sites More sharing options...
Artx Posted August 29, 2011 Author Share Posted August 29, 2011 Bump! Anyone? Link to comment Share on other sites More sharing options...
Artx Posted August 30, 2011 Author Share Posted August 30, 2011 Bumping again, I really need the solution. Link to comment Share on other sites More sharing options...
Artx Posted September 1, 2011 Author Share Posted September 1, 2011 Big excuses, but I still really need a sollution, help, please !! 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