Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

more than one 'setFilter' with dataobjectmanager


Go to End


4 Posts   3539 Views

Avatar
cardinale

Community Member, 23 Posts

22 June 2009 at 12:24am

Hallo,
is there a way to set more filters than one, something like this:

$xy->setFilter( 'Country', 'Sort by Country', array( 'IT' => 'IT', 'VA' => 'VA' ) );
$xy->setFilter( 'ZIP', 'Sort by ZIP', array( '01' => '01', 02' => '02' ) );

Avatar
UncleCheese

Forum Moderator, 4102 Posts

22 June 2009 at 8:18am

Sorry, only one filter is supported right now. I plan to add multiple filter support in the future.

Avatar
cardinale

Community Member, 23 Posts

24 June 2009 at 3:06am

Ok, thank you for your help

Avatar
Stef87

Community Member, 66 Posts

21 September 2012 at 2:22am

I know it's been over three years since this post was last active but I'm wondering did this feature ever become available?