stblink VIP
Total posts: 501
17 Jun 2013 09:33

I'm using the multilevelselect for country-state-city

I've read the documentation about the pre-filtereds links but still have some questions:

http://www.com/index.php

?option=com_cobalt

&task=records.filter

&item_id=12

&filter_name[0]=filter_type

&filter_val[0]=2

This only sets the type to 2, which is correct. The multilevelselect field has ID = 15 but i only want to filter by the first level... leaving the remaining 2 levels without selection.

First level of field has this values:

Portugal

Brasil

Angola

Moçambique

For this to be accomplished i would have to add:

&filter_name[0]=filter_k48f35c43525906b62b7e87eca10fd8b7

&filter_val[0]=Portugal

to filter by Portugal, i believe... but beeing a multilevelselect i believe it needs changes. Is this correct?

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
18 Jun 2013 07:23

Yes there you use ID. Best way is to make filter values as links in field parameter and then simple copy link and see how it is built.


stblink VIP
Total posts: 501
18 Jun 2013 08:34

Ah I forgot the values as links option, thanks for the tip.

Powered by Cobalt