Search

Hi, I ran into this issue: I would need to redirect to a different page depending if a $ds-param (datasource parameter). Basically I need to redirect depending on the outcome of a datasource.

I can't use a custom event since they are executed before the DS.

Any tips are welcome

many thanks J

hi joe,

you could most possibly cheat a little and do one of two things.

  1. Create an extension which hooks to 'datasource-complete' check your parameter & redirect

  2. Create/modify the datasource (execute function; check the param & redirect)

You can build a custom extension which hooks into the FrontendParamsPostResolve delegate. This delegate passes all $params including the datasource parameters.

Have a look at Page Headers extension. It enables you to put the redirect in your page.xsl.

No PHP required.

Thanks for super-quick answers! Looks from a quick look that Page Headers might do the trick, otherwise I'll do a custom DS

=)

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