Conditional values for dsParamORDER based on param ($url-type)
This is an open discussion with 2 replies, filed under General.
Search
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):
domain.com/event/results
+ a Datasource set to ASC
Second page URL scheme:
domain.com/pressrelease/results
+ a Datasource set to DESC
Hacking the php code of the generated datasource also works ;)
Create an account or sign in to comment.
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 domain.com/?type=Event#results the listing should in in ASC and when the user hits domain.com/?type=Press+Release#results 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.