7 users online. Create an account or sign in to join them.Users
Setting a default parameter for a DS
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
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.
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.