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

Search

I have a datasource that needs filtering by boat name if a boat is provided, otherwise it filters by the boats that are assigned to the category you are in.

For example:

/images/power/ - should return all images whos boat (a select box linked to boats) is assigned to one of the boats in my ds- param.

/images/power/new-boat-01/ - should return only the images with their boat assigned as new-boat-01.

My filter for the images data source is: {$product}, {$ds-category-products/item/@handle}

$ds-category-products is a list of nodes with the boat name handles I'm searching against on the handle. But the search always returns 0 results when I don't provide a boat name.

I assume this is because it doesnt know how to handle looping through each item nodes.

Is there another way around this? I don't want to have to assign a category and boat to each image when the category is already assigned to each boat.

Thanks

UML diagram: http://t.co/YKUJS9ID

Have you tried:

{$product:$ds-category-products}

?

Ah now I feel silly!

Thanks mate, you just saved me alot of frustration.

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