Can datasources be filtered by XSLT params?
This is an open discussion with no replies, filed under XSLT.
Search
Create an account or sign in to comment.
This is an open discussion with no replies, filed under XSLT.
Create an account or sign in to comment.
Quick Links
Symphony • Open Source XSLT CMS
--with-xsl
)
I was wondering if there's a way to filter datasources by XSLT params. So far you can create a page and define some URL "chains" like
year/month/day
, but these chains cannot be broken in order to work properly.What I would like to do on my weblog is to implement an Archive page where each page param is independent one another. For example, I may want to leave "year" and "day" empty (i.e.
archive/_/10/
) to let the system select only those entries which have been posted within that month.I thought it might be done through XSLT by checking if the $year parameter was "
_
" and if necessary by overwriting its value with$last-year
, but it didn't work. Thus I've come up with the following question: is there any way to define global parameters through XSLT that can be used to filter datasources, in the same way as page params act?Simone