Alfonsas, you are my hero :-)

I'm currently working on another project, but soon I'll star on that one
again. I already thought there wont be an easy way of displaying the
tree on the startpage. This post will save me a lot of
trial-and-error-driving-me-crazy-time ;-)

Best regards and a lot of thanks, Kai
VektorDesign - Online-Shops und Programmierung
Kai Gazmaga
Neue Strasse 83
89 073 Ulm      Tel.: +49 731 - 3781953
Fax: +49 731 - 3781952
        Mail: [email protected]
Web: www.vektordesign.de




Am 16.03.2011 13:11, schrieb Alfonsas Cirtautas:
> 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
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to