I have my macro working fine on my home page now but when I use it on a child page the NiceUrl code that I used in it produces a parse error on the child page!? I know it is this bit as if I remove it the content shows as expected!
The 'title' is the page selected with the content picker and 'pageTitle' is the name of the page typed in a TextString!
I'm not sure what to put so that it works on both the home page and a child page?
Please could someone help me with a suggestion? Or a better way to do it?
Does the title field also exist on your child page? If it's empty that's probably why you get the error...what happens if you try to amend your for-each from this
NiceUrl linking from content picker
It's Andy again!
I have my macro working fine on my home page now but when I use it on a child page the NiceUrl code that I used in it produces a parse error on the child page!? I know it is this bit as if I remove it the content shows as expected!
The 'title' is the page selected with the content picker and 'pageTitle' is the name of the page typed in a TextString!
I'm not sure what to put so that it works on both the home page and a child page?
Please could someone help me with a suggestion? Or a better way to do it?
Thank you very much
Andy
Hi Andy
Does the title field also exist on your child page? If it's empty that's probably why you get the error...what happens if you try to amend your for-each from this
<xsl:for-each select="$currentPage/navIcon/data/item">
to
<xsl:for-each select="$currentPage/ancestor-or-self::*/navIcon/data/item">
Does this work?
/Jan
Hi Andy,
If NiceUrl() is the cause, there must be an <item> element with an empty or non-existent <title>, because that code only executes on <item> elements.
Try the following to debug:
/Chriztian
is working on a reply...