Hi,
thanks for your answer.
As a collegue of mine found out, you only need to add this line
[{assign var="categories" value=$oxcmp_categories}]
at the start of the azure category tree termplate and it works.
regards
Gernot
Am Fri, 30 Nov 2012 17:29:59 +0100
schrieb OLIGOFORM GbR <[email protected]>:
> isn´t it possible with a little smarty like this:
>
> [{assign var="homeSelected" value="false"}]
> [{if $oView->getClassName() == 'start'}]
> [{assign var="homeSelected" value="true"}]
> [{assign var="expandedCategory" value=$oView->getActCategory()}]
> [{if $expandedCategory && $expandedCategory->getExpanded()}]
> [{assign var="homeSelected" value="false"}]
> [{/if}]
> [{/if}]
> <ul id="olg_navigation" class="sf-menu sf-vertical sf-js-enabled">
> [{assign var="categories" value=$oxcmp_categories}]
> [{defun name="tree" categories=$categories level=$level}]
> [{assign var="deepLevel" value=$deepLevel+1}]
> [{assign var="oContentCat"
> value=$oView->getContentCategory() }] [{foreach from=$categories
> item=_cat}] [{if $_cat->getIsVisible() }]
> [{* CMS category *}]
> [{if $_cat->getContentCats() && $deepLevel > 0 }]
> [{foreach from=$_cat->getContentCats()
> item=_oCont}] <li class="[{if $oContentCat &&
> $oContentCat->getId()==$_oCont->getId() }] active [{else}] end
> [{/if}]" > <a
> href="[{$_oCont->getLink()}]">[{ $_oCont->oxcontents__oxtitle->value }]</a>
> </li> [{/foreach}] [{/if }]
>
> [{* subcategories *}]
> <li class="olg_level_[{$deepLevel}]
> [{if !$oContentCat && $act &&
> $act->getId()==$_cat->getId() }]active[{elseif
> $_cat->expanded}]current[{/if}][{if !$_cat->hasVisibleSubCats}]
> end[{/if}][{if $_cat->hasVisibleSubCats}] olg_has_sub[{/if}]"> [{if
> $deepLevel == 1 }] <a
> href="[{$_cat->getLink()}]">[{$_cat->oxcategories__oxtitle->value}]
> [{ if $oView->showCategoryArticlesCount() &&
> ($_cat->getNrOfArticles() > 0) }] <em
> class="olg_count">([{$_cat->getNrOfArticles()}])</em>[{/if}]</a>
> [{elseif !$_cat->hasVisibleSubCats}] <a
> href="[{$_cat->getLink()}]">[{$_cat->oxcategories__oxtitle->value}]
> [{ if $oView->showCategoryArticlesCount() &&
> ($_cat->getNrOfArticles() > 0) }] <em
> class="olg_count">([{$_cat->getNrOfArticles()}])</em>[{/if}]</a>
> [{else}] <span>[{$_cat->oxcategories__oxtitle->value}]</span> [{/if}]
> [{if $_cat->getSubCats()}] <ul
> class="olg_level_ul_[{$deepLevel}]">[{fun name="tree"
> categories=$_cat->getSubCats() }]</ul> [{/if}] </li> [{/if}]
> [{/foreach}] [{/defun}] </ul>
>
> it works for us with oxid 4.6.5 too.
>
> regards,
> Oliver
>
>
> Am 30.11.2012 um 16:29 schrieb Gernot Payer:
>
> > Hi,
> >
> > according to this thread
> > http://forum.oxid-esales.com/showthread.php?t=14350 having the full
> > category tree in the left sidebar is still possible with a few
> > config options in the basic theme. This works, we tested it.
> >
> > Unfortunately there seems to be no easy way to have the same
> > functionality in azure theme (or in themes derived from azure). We
> > added all necessary options from basic to azure, but there was no
> > change.
> > A few more tries (options in config.inc.php, overriding config
> > variable checks via module) didn't help either.
> >
> > So my question, is there any way to get that functionality back?
> > Where is the location where azure and basic diverge? I mean, the
> > backend stuff is the same, so there must be a significant
> > difference elsewhere.
> >
> > regards
> > Gernot
> >
> > --
> > *******************************************
> > Dipl.-Inf. Gernot Payer
> > Software-Entwickler
> >
> > shoptimax GmbH
> > Guntherstraße 45a
> > 90461 Nürnberg
> > Amtsgericht Nürnberg HRB 21703
> > GF Friedrich Schreieck
> >
> > Tel.: 0911/25566-17
> > Fax: 0911/25566-29
> > [email protected]
> > http://www.shoptimax.de
> > *******************************************
> >
> > _______________________________________________
> > dev-general mailing list
> > [email protected]
> > http://dir.gmane.org/gmane.comp.php.oxid.general
>
>
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> O L I G O F O R M GbR
> Web. Design. Entwicklung & gute Beratung
>
> Ulestrasse 1
> 06114 Halle/Saale
>
> Telefon +49345694931-70 | Fax -63
>
> Mo-Do 9:00-16:00 Uhr ::: Fr 9:30-15:00 Uhr ::: Mail 24 Stunden
>
> eMail [email protected]
> Web www.oligoform.com
>
> Um eine zügige Bearbeitung Ihres Anliegens zu gewährleisten,
> antworten Sie bitte immer an [email protected] _ _ _ _ _ _ _ _ _ _
> _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> ::: BITTE BEACHTEN :::
> Senden Sie uns Passwörter nicht per E-Mail und nur nach vorheriger
> Absprache! Wir teilen Ihnen dann mit, wie Sie uns diese übermitteln
> können (Fax, SMS, Telefon…)!
>
> ::: Think before you print :::
>
>
>
>
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
>
--
*******************************************
Dipl.-Inf. Gernot Payer
Software-Entwickler
shoptimax GmbH
Guntherstraße 45a
90461 Nürnberg
Amtsgericht Nürnberg HRB 21703
GF Friedrich Schreieck
Tel.: 0911/25566-17
Fax: 0911/25566-29
[email protected]
http://www.shoptimax.de
*******************************************
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general