5 users online. Create an account or sign in to join them.Users

Search

I tried to search around the forum, but haven't seen anyone ask this before.

If you create a new datasource, and look down under "Sorting and Limiting" there is a field called "Required URL Parameter" that looks like this:

URL Parameter

I'm wondering if it would ever be possible to have this field, (or a similar one) ONLY EXECUTE the datasource if the datasource equaled something specific, not just existed.

I understand you can filter things, but this would be different, sometimes I don't want a datasource to execute at all until another variable has been added.

For example: I have a page named teams, with a 1st url parameter of the team name: http://www.mysite.com/teams/team-name/ and my 2nd url parameter might tell the page to do separate things. Such as:

http://www.mysite.com/teams/team-name/news/
http://www.mysite.com/teams/team-name/schedule/
http://www.mysite.com/teams/team-name/players/

Each one might require different datasources, it could be nice to only execute those datasources if the 2nd parameter equaled something specific like "news".

Any thoughts?

Keep your eyes peeled for 2.3 ;o)

Ooooooh.... I hadn't heard any talk about such a feature... does it exist at all in the Beta? I'll go check out my install.

You could try Field: Filter.

Create an account or sign in 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 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details