I'm makinga sitewhere there isa submenu. This submenumustsometimes be displayedalong witha map.
I have a template called TextPage - this is where I insert the submenu macro.
If the TextPage is a subpage to a
template called "Destination" then the submenu should show submenu and a
map, otherwise the TextPage should only contain the sumbenu
My Structur look like this:
Site - Frontpage - TextPage (only show submenu) TextPage (only show submenu) - Destination TextPage (show submenu and map)
how can I in my xslt file describewhether I am on at TextPage that is a subpage to template "Destination" or just a regular TextPage?
Find Template name one level up
I'm making a site where there is a submenu.
This submenu must sometimes be displayed along with a map.
I have a template called TextPage - this is where I insert the submenu macro.
If the TextPage is a subpage to a template called "Destination" then the submenu should show submenu and a map, otherwise the TextPage should only contain the sumbenu
My Structur look like this:
Site
- Frontpage
- TextPage (only show submenu)
TextPage (only show submenu)
- Destination
TextPage (show submenu and map)
how can I in my xslt file describe whether I am on at TextPage that is a subpage to template "Destination" or just a regular TextPage?
Thanks in advance
Hi Kate,
If you're using match templates in your XSLT you can differentiate just by adding the Destination - e.g.,:
(Note: These are DocumentType aliases of the pages)
Is this enough info to get it working?
/Chriztian
Hi Chriztian
Sorry, I need a bit more help.
This is what I wrote in my xslt. Just as an example. But I cant get it to work
This is what my content tree looks like
Hi Chriztian
I found your site http://pimpmyxslt.com/articles/match-templates-intro/ and that was a great help.
So Thanks for your help. It works now :-)
/Kate
Ha, that is great :)
I didn't think to link to that article - but of course...
/Chriztian
is working on a reply...