I just reordered my Content tree for a website. I moved the Nieuws folder. It was previously under the Home node, and I moved it a level up, and now it is under the Site node:
But now I notice that the Front News xslt macro is working correctly anymore since the NewsArea document type is not located anymore under the Home document type:
<xsl:for-each select="$currentPage/NewsArea/NewsArticle [@isDoc and string(umbracoNaviHide) != '1']">
Does anybody know how I can adapt this for-each loop so that the NewsArea document type can be accessed from the Home page?
yet another xslt navigation problem
Hi,
I just reordered my Content tree for a website. I moved the Nieuws folder. It was previously under the Home node, and I moved it a level up, and now it is under the Site node:
But now I notice that the Front News xslt macro is working correctly anymore since the NewsArea document type is not located anymore under the Home document type:
<xsl:for-each select="$currentPage/NewsArea/NewsArticle [@isDoc and string(umbracoNaviHide) != '1']">
Does anybody know how I can adapt this for-each loop so that the NewsArea document type can be accessed from the Home page?
Thanks for your help,
Anthony Candaele
Belgium
Hi Anthony,
You can do a couple of different things:
If you're only using it from the Home node - do this:
Otherwise, if you'd like a more generic version, this will work on any page in the "Site" website:
/Chriztian
Hi Chriztian,
Thanks a lot. Your solution works. As I just need to read out the news items on the home page, I used your first solution.
Anthony
is working on a reply...