Copied to clipboard

Flag this post as spam?

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


  • Dincer M. 35 posts 97 karma points
    Feb 25, 2014 @ 04:50
    Dincer M.
    0

    Macro only works on Homepage

    I created a Macro, which runs an XSLT, which reads some node info and prints in on the page.

    I am invoking this macro inside my Master template, so that this data can be seen on every page. 

    However, the macro runs correctly only on the homepage. When I go to  other pages, I can see blank only, instead of data printed on the screen. 

    What would be the reason?

    This is how I get the items in my xslt:

    <xsl:for-each select="$currentPage/LectureForecast/LectureItem [@isDoc and string(umbracoNaviHide) != '1']">

    Do I need to do something for different levels?

    (My master template includes the header, footer, and right side; which are always shown. Location-wise, I put my macro on the right side)

     

  • Dincer M. 35 posts 97 karma points
    Feb 25, 2014 @ 05:51
    Dincer M.
    100

    I think I just fixed it :-)

    <xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc]/LectureForecast/LectureItem [string(umbracoNaviHide) != '1']">

  • 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