Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kjetil Næss 12 posts 32 karma points
    Dec 20, 2011 @ 09:25
    Kjetil Næss
    0

    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

  • Rune Grønkjær 1371 posts 3102 karma points
    Dec 20, 2011 @ 12:38
    Rune Grønkjær
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft