Hi Doug, It could be that your @nodeTypeAlias is not actually "HomePage" or you may need to do $currentPage/@nodeTypeAlias (depending if your rendering your code in a for-each loop). First try just printing the @nodeTypeAlias to screen out side the conditional statement i.e. <xsl:value-of select="./@nodeTypeAlias" /> and see what come out, then go from there.
simple xslt choose not displaying
This seems simple enough, but I can't seem to understand why this code isn't working.
when I'm on the homepage doc type, it is displaying the code in otherwise. What am I missing?
Hi Doug,
It could be that your @nodeTypeAlias is not actually "HomePage" or you may need to do $currentPage/@nodeTypeAlias (depending if your rendering your code in a for-each loop). First try just printing the @nodeTypeAlias to screen out side the conditional statement i.e. <xsl:value-of select="./@nodeTypeAlias" /> and see what come out, then go from there.
Hope this helps.
Neil
Hi Doug
I'd try to put $currentPage in front of your @nodeTypeAlias like this:
This should work in my head. Try it out, and return with your result :)
/Kim A
Thanks Neil and Kim. Both of you were correct. I needed to add $currentPage/.
Perfect Doug!
Remember to mark this question as solved :)
Regards,
/Kim A
is working on a reply...