# Linksseitige Navigation / Topnavigationspunkt ausblenden

**URL:** <https://forum.oxid-esales.com/t/linksseitige-navigation-topnavigationspunkt-ausblenden/46396>\
**Category:** Deutsches Forum\
**Tags:** templates-design\
**Created:** [October 20, 2010, 2:24pm UTC](https://forum.oxid-esales.com/t/linksseitige-navigation-topnavigationspunkt-ausblenden/46396 "2010-10-20T14:24:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coarsy2](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/c/848f3c/32.png) [@coarsy2](https://forum.oxid-esales.com/u/coarsy2)\
**Post date:** [October 20, 2010, 2:24pm UTC](https://forum.oxid-esales.com/t/linksseitige-navigation-topnavigationspunkt-ausblenden/46396/1 "2010-10-20T14:24:38Z")

</div>

Hi zusammen,

ja, dieses Thema wurde schon desöfteren hier besprochen, habe jetzt  
mal in der category\_tree.tpl alles soweit angepasst, dass nur noch die Unterkategorien ausgegeben werden. Nun kommt mir das Ganze etwas “unsauber” vor.

Kann vielleicht bitte mal jemand nen Blick riskieren und mir sagen, ob das so korrekt ist, müsste doch irgendwie einfacher gehen.

Hier also die category\_tree.tpl:

```php

[{if $tree || $oView->getContentCategory() }]
<strong class="h2">Kategorien</strong>
[{assign var="oContentCat" value=$oView->getContentCategory() }]
[{defun name="category_tree" tree=$tree act=$act class=$class testSubCat=''}]
[{strip}]
  <ul [{if $class}]class="[{$class}]"[{/if}]>   
    [{assign var="iCatCnt" value="1"}]
    [{foreach from=$tree item=ocat key=catkey name=$test_catName}]
        [{if ( !$ocat->isTopCategory() || !$oView->showTopCatNavigation() ) && $ocat->getContentCats() }]
            [{foreach from=$ocat->getContentCats() item=ocont key=contkey name=cont}]
            
                [{if $ocat->isTopCategory()}]
                    
                [{else}]
                    <li>
                    <a href="[{$ocont->getLink()}]">[{ $ocont->oxcontents__oxtitle->value }]</a>
                    </li>
                [{/if}]
            
            [{/foreach}]
        [{/if}]
        [{if $ocat->getIsVisible() }]
        
                [{if $ocat->isTopCategory()}]
                    
                [{else}]
                    
                    [{if $ocat->expanded}]
                    
                        <li>
                        <a class="[{if $ocat->isTopCategory()}]root [{/if}][{if $ocat->hasVisibleSubCats}][{if $ocat->expanded }]exp [{/if}]has [{else}]last [{/if}][{if isset($act) && $act->getId()==$ocat->getId() && !$oContentCat }]act [{/if}]" href="[{$ocat->getLink()}]">[{ $ocat->oxcategories__oxtitle->value }]</a>
                        [{if $ocat->getSubCats() && $ocat->expanded}]
                        [{fun name="category_tree" tree=$ocat->getSubCats() act=$act class="" testSubCat=$ocat->oxcategories__oxid->value }]
                        [{/if}]
                        </li>
                    
                    [{else}]
                                                                
                        <li>
                            <a href="[{$ocat->getLink()}]">[{ $ocat->oxcategories__oxtitle->value }]</a>
                        </li> 
                    
                    [{/if}]
                    
                [{/if}]
                
            [{if $ocat->getSubCats() && $ocat->expanded}]
                [{fun name="category_tree" tree=$ocat->getSubCats() act=$act class="" testSubCat=$ocat->oxcategories__oxid->value }]
            [{/if}]
        
        [{/if}]
        [{assign var="iCatCnt" value=$iCatCnt+1 }]
    [{foreachelse}]
        [{if $oContentCat }]            
            <li><a id="test_BoxLeft_Cms_0" class="root act" href="[{$oContentCat->getLink()}]">[{ $oContentCat->oxcontents__oxtitle->value }]</a></li>
        [{/if}]
    [{/foreach}]
   </ul>
[{/strip}]
[{/defun}]
[{/if}]

```

Dankeschön 🙂

Allerbeste Grüße vom Chris

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:55pm UTC](https://forum.oxid-esales.com/t/linksseitige-navigation-topnavigationspunkt-ausblenden/46396/2 "2026-07-13T19:55:03Z")

</div>


