Hello all, I searched the forums but didn't found exactly what i'm looking for. First : we use Jomsocial to administrate a quite big directory with firms, member firms, networks, people to contact in member firms, in different continents, countries, etc...
ISSUE SUMMARY:
On a Page "Members List", with have a header selector based on JomSocial Advanced Search. I need to show Firms AND Networks but NOT representatives nor Members. I use Advanced Search with profiletype hidden selector, to only allow people to choose other criterias as continent, country, ...
Then : Firms, Member Firms, Networks and Representatives are Profile Types.
Display : To Call my Page, i use an Advanced Search URL given parameters adresse like this :
/directory/advancesearch?operator=and
&keylist=0%2C1
&from=directory
&email=0
&field0=continent
&condition0=equal
&fieldType0=
&value0=Europe
&field1=country
&condition1=equal
&fieldType1=
&value1=Belgium
&field2=services_expertise
&condition2=equal
&fieldType2=
&value2=
&field3=sectors_expertise
&condition3=equal
&fieldType3=
&value3=
&limit=20
&profiletype=4
&option=com_community
&view=search
&task=advancesearch
&Itemid=295
ProfileType Selector doesn't allow multiselection, so i am confused on how to filter it the way i need.
I Saw this subject in Stack Overflow :
stackoverflow.com/questions/24059773/cor...-name-in-get-request
but... thing is, this is what happens when i play manually with my parameters :
note (profiletype 3 is "Networks" and profiletype 4 is "Member firms", the ones i want)
"&profiletype=3&profiletype=4" only returns same as "&profiletype=4" (the last who talks takes all?)
"&profiletype=3,4" only returns same as "&profiletype=3" (the first who talks takes all?)
"&profiletype[]=2&profiletype[]=4" as suggested on stack overflow returns error 1054
"Error: 1054
Unknown column 'Array' in 'where clause' SQL=SELECT `field_id` FROM `#__community_profiles_fields` WHERE `parent`=Array"
What i Need is an OR/XOR action :
profiletype value should be 2 or 4, but not both.
Any ideas ?