Adding custom fields to page definition (and XSLT) help.
This is an open discussion with 2 replies, filed under General.
Search
Aha figured out the second part. I need name = 'Drafts'.
Okay, is there documentation for this stuff? (probably). Can someone point me to it please so I don't keep bugging you guys?
Hi, djgraphite.
Take a look on this
http://www.w3schools.com/xpath/, http://www.w3schools.com/xsl/
Create an account or sign in to comment.
Please forgive me if this is a dumb question. I'm rusty on what was never really that good xslt, and new to symphony.
As I try to figure out theming my site, I'm playing around with the xslt for the navigation and what not. I'd like to add a custom short description associated with each page on my site. I can hard code all of the values and my navigation in the navigation template. Instead I'd like to just be able to change the page template to do what I want. Is there a way to add said description to the pages?
Also, an xslt question. I understand the following line:
<xsl:apply-templates select="page[not(types/type = 'hidden') and not(types/type = 'admin')]"/>
How would I go about doing something like applying it to a specific page? I thought it might be the following: <xsl:apply-templates select="page[(title = 'Drafts')]" />
But that doesn't seem to work at all.