Search

If I have a page called archive, with a url parameter called ‘year’, and an attached DS filtering by a date field, should the following set $year to 2009 in the global param pool?

2007-01-09 to {$year:$this-year}-{$this-month}-{$this-day}

I’ve tried {$year:$this-year} alone and it didn’t work, and even {$year:2009} didn’t work. I thought it was working this afternoon, but I can’t really figure out what happened to change it.

For future reference, I assumed that by using enumeration (i.e. {$a:2}) it would set the parameter for use on the actual page itself, ie on the ?debug page it would show up as $a = ‘2’, but that isn’t the case, the DS doesn’t pass the default parameter back to the page.

I assume this is intentional, or I broke something.

Your enumeration example says, “If $a is not set, filter the DS with value 2 instead.

If you want your XSLT to do the same:

<xsl:if test=" $a = '' ">2</xsl:if>

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