Copied to clipboard

Flag this post as spam?

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


  • nickspacek 26 posts 20 karma points
    Apr 16, 2009 @ 15:59
    nickspacek
    0

    XSLT macro in parent node accessing data from child node

    Hi everyone,

    This is probably something really easy that I just need to get my head wrapped around. :) Here's the situation:

    I have a master template where I want to use a page title macro. I have a child template that specifies the page title to be used.

    Now, when I try to access the currentPage when viewing a page that uses the master template, it works fine. When I try to access a page using the child template, I can't seem to get any data out of currentPage.

    I'm just using a select like: $currentPage/nodeName, for testing. Is there something else I need to do so that it supports child nodes too?

    Also, is there an easy way to dump the currentPage parameter values that the macro is seeing?

    Thanks!

  • nickspacek 26 posts 20 karma points
    Apr 16, 2009 @ 16:54
    nickspacek
    0

    I'm not sure what was changed, but it now appears to be working the way I thought it should. For reference, I am using:

Please Sign in or register to post replies

Write your reply to:

Draft