Artikel der hauptkategoie als Navigation (Sidebar)

Hallo,
bin neu hier und wollte erstmal ein “hallo@all raushauen” ;).

Ich habe mir lokal die 4.8.1 installiert und spiele gerade mit dem
Azure Template (blank). Zum Test habe ich 3 Hauptkategorien angelegt.
In der Kategorie sind mind 3 Artikel drin.

Wie und Wo kann ich nun der Sidebar-Navi als Titel “Hauptkategorie” und
als Navipunkt(e) die einzelnen Artikel zuweisen?


<!-- Muster -->
<h1>HAUPTKATEGORIE</h1>
<ul>
<li><a href="URL zum Artikel 1">Artikel 1</a></li>
<li><a href="URL zum Artikel 2">Artikel 2</a></li>
<li><a href="URL zum Artikel 3">Artikel 3</a></li>
</ul>

Danke schonmal.
Grz. Chris


im template "sidebar.tpl"
steht folgendes …

[{block name="sidebar_categoriestree"}]
        [{if $oView->getClassName() != 'start' && $oView->getClassName() != 'compare'}]
            [{oxid_include_widget cl="oxwCategoryTree" cnid=$oView->getCategoryId() deepLevel=0 noscript=1 nocookie=1}]
        [{/if}]
    [{/block}]

bin ja noch neu hier … :stuck_out_tongue:

oxid_include_widget

Gibt es da auch ein oxid_include_widget “oxwArticleTree” … mal ins blaue gefragt?

Danke. Grz. Chris

… mein Versuch:
“sidebar.tpl”

[{block name="sidebar_articlestree"}]
        [{if $oView->getClassName() != 'start' && $oView->getClassName() != 'compare'}]
        	[{assign var="oCategories" value=$oView->getCategoryTree()}]
        	[{assign var="oArticles" value=$oView->getArticleList()}]
        	[{assign var="ocat" value=$oView->getActCategory()}]
        	[{*$ocat|@print_r*}]
        	
        	<h1>[{$ocat->oxcategories__oxtitle->rawValue}]</h1>     	

        	        	
        	[{if $oArticles|@count > 0}]
			[{*$oArticles|@print_r*}]
			<ul>
				[{foreach from=$oArticles item=actionproduct name=CatArt}]
        			[{assign var="oArticleTitle" value=$actionproduct->oxarticles__oxtitle->value}]
					[{assign var="oArticleId" value=$actionproduct->getId()}]
					[{assign var='oArticleLink' value=$actionproduct->getLink()}]
					
					<li><a href="[{$oArticleLink}]">[{$oArticleTitle}]</a></li>
					
					
					
				[{/foreach}]
			</ul>
			[{/if}]

       [{/if}]
    [{/block}]

Hat jemand noch (denke sicher) ein paar Verbesserungs-Tipps?
Danke. Grz. Chris