Filtering <xsl:apply-templates/> based on page type?
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
with templates you are allowed to use modes so you can do
<xsl:apply-templates mode='site1'/>
and each template has to specify mode='site1'
then only those templates of the same mode will run.
Fantastic, thanks for the reply gunglien.
Create an account or sign in to comment.
Hello,
I'm currently using a choose when command to take the visitor to a master template based on the URL they have inputted, for example:
This setup is currently working fine apart from the
<xsl:apply-templates/>
script is bringing in all pages, is there a way I can filter which pages the master templates bring in based on the page type names similar to how I’m using the nav script.Many Thanks.