Search

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details