Search

Hey everyone, I’ve been using Symphony for quite a while but I’ve never had to do quite what I’m needing to do here. I’m hoping you can help me out.

I have two sections: Authors and Things. Each ‘Thing’ is related to an Author. Each other can publish multiple Things.

I have a checkbox in the Authors section called ‘Current’ and this denotes whether or not that particular Author is the featured Author that week. What I would like to do is create a datasource that 1) finds out which Author has his Current set to Yes and 2) find all Things and filter them by the Author chosen in step one.

If any of you could point me in the right direction, I’d be eternally grateful. Thanks!

Output Parameters are your friend :-)

http://getsymphony.com/forum/discussions/20654/

Your Authors DS needs to filter the checkbox with a ‘yes’ value, and limit to one result (in case you tick more than one). Your Things DS can then use the value of the Author output param in a filter. This assumes you’re linking entries together using a Select Box Link field. This uses entry IDs to link the two together behind the scenes, so you use the System Id as your output parameter. If you’re linking entries with a Select Box field, these use text strings behind the scenes, so you would need to do your cross-filter on the author name/handle instead. Select Box Link is the most robust.

Oh man, I have no idea how I overlooked that. Nick, you are awesome, thanks!

Another thread that is useful: http://getsymphony.com/forum/discussions/23576/

No problem :-)

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