Copied to clipboard

Flag this post as spam?

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


  • JudasIscariot 4 posts 20 karma points
    May 06, 2009 @ 16:17
    JudasIscariot
    0

    retrieving data through content picker

    Hi

    I've got 3 content pickers on my homepage, and i want a macro to render a navigation bar with 3 links. I need my xslt file to retrieve 3 attributes from each the source nodes choosen in the contentpickers (respectively named 'box1source', 'box2source' and 'box3source'):

    url
    pageName (textstring)
    img src (url from upload)

    i call in the nodes from the contentpickers in variables:
    [code]



    [/code]

    how to retrieve these 3 attributes from each node?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 06, 2009 @ 16:37
    Dirk De Grave
    0

    Hi,

    box1, box2 and box3 should all id's for other nodes in the content tree.
    I'd suggest to feed the boxX var's with the node, rather than the node's id, otherwise you'll have to grab a node multiple times.

    [code][/code]

    Retrievin the attributes become as simple as:

    [code]

    [/code]
    Btw, isn't pageName the same as the node's name? In that case, you'd use

    [code][/code] instead of
    [code][/code]

    Hope this helps.

    Regards,
    /Dirk

  • JudasIscariot 4 posts 20 karma points
    May 06, 2009 @ 17:13
    JudasIscariot
    0

    Exactly what i needed :)

    Thx Dirk

Please Sign in or register to post replies

Write your reply to:

Draft