1 Online. Join themUsers

Search

On some pages I have an URL parameter called $id_page. But when this parameter doesn’t exist, my site throws me a parsing error.

Can I do something like ‘if the parameter $id_page exists then do this, else do that’?

As far as I know you can define a global parameter (outside your template declarations)

<xsl:param name="id_page" />

to prevent the error. After that, a

<xsl:if test="$id_page" />

should work

Login to Comment

Symphony • Open Source XSLT CMS

Server Requirements
  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 4.1 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts