Hi Kai,
Basicly you do not need category tree for start page, because it is used to
display only tree of selected top root category.
But i will explain how you can display it, anyway.
Open file in out\azure\tpl\layout\sidebar.tpl and change 'categories' include
parameter value for file widget/sidebar/categoriestree.tpl
from: categories=$oxcmp_categories->getClickRoot()
to: categories=$oxcmp_categories
also open included file widget/sidebar/categoriestree.tpl and add missing check
for 'act' include parameter (fixed in dev version) in line ~16
from: [{if !$oContentCat && $act->getId()==$_cat->getId() }]
to: [{if !$oContentCat && $act && $act->getId()==$_cat->getId() }]
This example has a side effect of always visible root categories, but i guess
this is what you wanted, if not i believe you can easily fix it yourself ;)
Regards, Alf
________________________________________
From: [email protected]
[[email protected]] on behalf of Kai Gazmaga
[[email protected]]
Sent: Monday, February 21, 2011 1:52 PM
To: [email protected]
Subject: [oxid-dev-general] Templating in Oxid 4.5
Hi mailinglist!
How can I bring the category-tree to the start.tpl of oxid 4.5? I found,
that displaying the tree depends on the availability of oxcmp_categories
in /widget/categories_tree.tpl. All I tried to make it present in
start.tpl and therefor in the included templates sidebar, and
categories_tree failed. searching the whole source-code for the class
and several other things I meant to maybe trigger the loading of the
component did not help, too.
Regards, Kai
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general