Another beginners question I'm afraid. I want to create a box which holds the list of productcategories/products instead of selecting the page from the menu. How can I duplicate this functionality (from productList.xlst ?) ?. I believe I have to create a template for my box, which calls a macro which points to the xslt file which containts this functionality.
I've managed to create the box and connect it in the structure. I have also tried to create a template which calls a macro, but neither the template nor the macro outputs anything (the template is checked as Allowed templates on the infotab for the box).
That's not a noob question, as it have never been asked before ;)
What I thiink you want to do is copy and change the functionality of the box_productList.xslt. That's the one that creates the standard product list box.
Change the "match" of the template to the document type alias of your own box. then include it in the box_boxList.xslt. That's it. From there on you just do the xslt magic, and write the products any way you want.
How to get list of product
Another beginners question I'm afraid. I want to create a box which holds the list of productcategories/products instead of selecting the page from the menu. How can I duplicate this functionality (from productList.xlst ?) ?. I believe I have to create a template for my box, which calls a macro which points to the xslt file which containts this functionality.
I've managed to create the box and connect it in the structure. I have also tried to create a template which calls a macro, but neither the template nor the macro outputs anything (the template is checked as Allowed templates on the infotab for the box).
Any pointers to where I'm going wrong ?
Kjetil
Hi Kjetil,
That's not a noob question, as it have never been asked before ;)
What I thiink you want to do is copy and change the functionality of the box_productList.xslt. That's the one that creates the standard product list box.
Change the "match" of the template to the document type alias of your own box. then include it in the box_boxList.xslt. That's it. From there on you just do the xslt magic, and write the products any way you want.
/Rune
is working on a reply...