Hi there,
I’m doing a small catalog where I need to list subcategories when choosing a category in the navigation.
The tree looks like this:
Category
->Subcategory
->Product
->Product
->Product
->Subcategory
->Product
->Product
->Product
When you click a link in the navigation a page shows where new navigation is found. Here the Subcategory title is a header (thus the content of the subcategory document is blank) and the product titles are links in the new navigation.
I’m using a ditto-call to create these lists:
[!Ditto? &tpl=`produktliste` &sortDir=`ASC` &display=`all` &tplAlt=`produktliste2`!]
The templates are practically just a div with a wayfinder-call to list the links for the products..
My problem is that the last subcategory i made need to be the first one showed on the page, but I the order of the rest has to be the same so I can’t just change the sortDir to descending. Is there a way for me to reorder this? I was thinking that maybe i had to use wayfinder to call the subcategories as well in order to set the order as i wanted it (menu-listing) but i’m thinking there probable is a simple solution to this, still using ditto.