Copied to clipboard

Flag this post as spam?

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


  • Niels Kristiansen 166 posts 382 karma points
    Feb 23, 2009 @ 00:31
    Niels Kristiansen
    0

    Place a number behind a menuitem with subpages

    Hi,

    I'm looking for a solution where I can show how many subpages there is under every menuitem with a count. With the XSLT I have at the moment it shows the same number on all the menu items.

    That means, if I am clicking "Product area 1", it will show 2 here (that's correct) but under "Product area 2", "Product area 3" and "Product area 4" it will also show output as 2.

    The structure should work like this instead:

    - Content
      - Welcome
        - Products
          - Product area 1 (Show the number 2)
            - Product a
            - Product b
          - Product area 2 (Show the text "none")
          - Product area 3 (Show the number 2)
            - Product c
            - Product d
          - Product area 4 (show the number 4)
            - Product e
            - Product f
            - Product g
            - Product h

    Can it be done at all with XSLT?
    I really hope someone can help me with this one.

    Kind regards,
    Niels

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 23, 2009 @ 08:38
    Peter Dijksterhuis
    0

    Hi Niels,

    you could try something like this:

  • Niels Kristiansen 166 posts 382 karma points
    Feb 24, 2009 @ 00:08
    Niels Kristiansen
    0

    Hi Peter,

    It just works like a charm :)

    Thanks a million.


    Kind regards,
    Niels Kristiansen

Please Sign in or register to post replies

Write your reply to:

Draft