Search

Hello.

I got GET parameter

?language=LLL

which I use to filter DSes by applying

{$url-language}

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…

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.

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