Default GET parameter value to filter DS?
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
Take a look at the Data Source Filters article. You can easily have a “fallback” for the filter in case the URL parameter is missing, like so:
{$url-language:LLL}
Great!
Create an account or sign in to comment.
Hello.
I got GET parameter
which I use to filter DSes by applying
but I got problem with the situation where the parameter is not defined yet (i.e. visiting the page first time and thus have not clicked on any navigation yet where the language parameter is always included in correct form).
How to cope with it? How to benefit from DS filtering if there is no way to set up default GET parameter value? Would I have to do it manually in XSLT just because of the single case when the parameter is not set which is a great pity?
I could use the
.htaccess
and do some sort of trickery there but it’s not as clean way as to do it in Symphony itself, somehow…Thank’s for your ideas…