Search

Hi there,

I have a News page which I would like to filter via url params in a pattern roughly like this:

  • www.domain.com/news - all records
  • www.domain.com/news/entry/ - single record
  • www.domain.com/news/category/ - all records for named category
  • www.domain.com/news/year/ - all record for year
  • www.domain.com/news/year/month/ - all records for month in year
  • www.domain.com/news/category/year/ - all records for year in category
  • www.domain.com/news/category/year/month/ - all records for month in year in category

...you get the idea.

Is there a way to do this with a single page and datasource? If so, how? I'm getting nowhere fast to be honest.

Any help would be greatly appreciated.

Neil

I think you'd need three subpages (pages whose parent is news): entry (param = id or title), year (param = month), and category (params = year/month).

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