Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
I think I just fixed it :-)
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc]/LectureForecast/LectureItem [string(umbracoNaviHide) != '1']">
is working on a reply...
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.
Continue discussion
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)
I think I just fixed it :-)
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc]/LectureForecast/LectureItem [string(umbracoNaviHide) != '1']">
is working on a reply...
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.