Copied to clipboard

Flag this post as spam?

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


  • dado0583 3 posts 20 karma points
    Feb 09, 2009 @ 23:03
    dado0583
    0

    Simple Problem! - Passing a page variable through to an xslt page

    Hi,

    I have declared a variable at a page level. The variable is called titleImage and appears in the config like so:

    contact

    So, I have created an xslt file with the correct headers, etc, followed by this:




    I have set up a macro that has is backed by the xslt file and has a parameter called 'titleImage'.

    So in my page template I tried to insert the macro like so:



    I was expecting the output to be contact, but all I am getting is **. The data is there and I think I have done all the neccessary plumbing. Can anyone point me in the direction to what I may have missed out please?

    Thanks,
    David

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Feb 09, 2009 @ 23:10
    Dirk De Grave
    0

    Hi David,

    [code][/code]
    has no value at the time it's called using the value-of statement.

    But I think I'm getting your confusion here. I guess you've been using the same syntax as for the $currentPage, right? Hmm, don't, instead use

    [code][/code]
    or
    [code][/code]

    Hope this helps.

    Regards,
    /Dirk

  • Tommy Poulsen 514 posts 708 karma points
    Feb 09, 2009 @ 23:11
    Tommy Poulsen
    0

    Hi David, to get access to a macro parameter you would normally add a line like this in the beginning of your xslt:

    [code][/code]

    Tommy

    - aah, Dirk was faster

  • dado0583 3 posts 20 karma points
    Feb 10, 2009 @ 22:42
    dado0583
    0

    Excellent. It's working fine now :)

    Thanks for the help

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies