(will not work when used as multiple selector)

Author Message

Fabricio Guerrero

Monday 23 January 2006 6:14:55 am

Hi,

(will not work when used as multiple selector)

I've seen that comment all over the forum and documentation section but my problem :( is that i indeed have a Class with a multiple selector and an important part is for me to fetch and filter on that field.

To give a bit more detail we're creating a site based on articles and these articles can have various categories. As an user you can be able to view articles by categories. The fetch works if that Article only belongs to one category but if the article has various categories(multiple selector working here) the fetch just wont return the article...

I've tested various ways of filtering(like, in) but none seem to work. Here's the simple fetch:

{let
filter_cat=fetch( 'content', 'tree', hash( 'parent_node_id', 77,
class_filter_type, "include", class_filter_array, array(25),
attribute_filter, array( array( 'article_issue/category', '=', $selected ) ),
...

Thank you in advance for all help given...

Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Fabricio Guerrero

Tuesday 24 January 2006 9:49:08 am

Hi,

Trying to bump this up... I've done a work around for this.. My need was or is to be able to Filter Multiple Selection Attributes.

Since all over this site it specifically indicates that the "attribute_filter" cann't filter these type of Attributes I rewrote the fetch using the 'search' 'text' feature... this way i can perform a text search in the Multiple Selection Attribute and get the Articles assigned to either one or multiple categories...

example fetch:

{def $search=fetch( 'content', 'search',
hash( 'text', 'value_looking_for_here',
'class_id', 25,
'class_attribute_id', multiple_selection_attribute_id_here,
'offset',$view_parameters.offset,
'limit', $numberOfObjects,
'sort_by', array( 'published', false() )
))}
{set search_result=$search['SearchResult']}
{set search_count=$search['SearchCount']}

...here start looping...

Does anybody have any other ways to filter a Multiple SelectionAttribute?

Regards,
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.