I have a datasource pulling in content of different types (Events, Press Releases, Public Affairs) and need to have different values for ordering based on the type parameter. For example, when the front end hits the listing should in in ASC and when the user hits the listing should be in DESC order. I am new to Symphony and have inherited this project from a previous developer, any help is greatly appreciated.

One simple way might be to use pages and page params instead of url-params, e. g.

First page URL scheme (event = the page, results could be a param or nested page): + a Datasource set to ASC

Second page URL scheme: + a Datasource set to DESC

Hacking the php code of the generated datasource also works ;)

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