Who to Follow - how to exclude a couple quota_id

PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
I am working with the new FollowMe - Who to Follow side panel.

I have the {$profiles_to_follow} placed and looking good, but I need to exclude some quota_id(s).

How do I do that with this smarty?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

updated by @the-patria-company: 06/24/17 10:15:40AM
PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
I have tried this but its a no-go.

{jrFollower_who_to_follow profile_id=$id limit=3 search1="quota_id = 28" template="index_follow.tpl" assign="profiles_to_follow"}



--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
brian
@brian
7 years ago
10,148 posts
This is not going to work like you are hoping - the jrFollower_who_to_follow function does not support a "search" parameter like that. Internally it DOES use a jrCore_list call however, so it likely COULD be supported - we can check it out. Note that we have quite a list of stuff we're working on here however, so it won't be immediately, but I'll get a ticket open on it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
Thanks Brian!! I've got your back bro, I would hate for you to run out of things to do. ;)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
Would anyone have time to implement this soon? We are running into some issues were certain profiles continue to show up that need to be filtered out.

Thanks


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
paul
@paul
7 years ago
4,326 posts
Hi - I've added this in for the next Follower module release. The 'jrFollower_who_to_follow' smarty function will now recognise profile search parameters.
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
7 years ago
4,326 posts
Latest Follower module released to the Marketplace.
You can now add profile searches to the jrFollower_who_to_follow smarty call -
{jrFollower_who_to_follow profile_id=$id limit=3 search1="profile_quota_id = 28" template="index_follow.tpl" assign="profiles_to_follow"}



--
Paul Asher - JR Developer and System Import Specialist
PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
Is there a way to select or exclude multiple quotas in the search param?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
michael
@michael
7 years ago
7,715 posts
try
search1="profile_quota_id not_in 3,4,5"
PatriaCo
PatriaCo
@the-patria-company
7 years ago
349 posts
It works with a single variable, but breaks the template with multiple variables.

search1="profile_quota_id not_in 3" >>> WORKS
search1="profile_quota_id not_in 3,4,5" >>> does not work

Another ideas I could try?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
michael
@michael
7 years ago
7,715 posts
That's the way we do it in many other places. Works.
douglas
@douglas
7 years ago
2,790 posts
PatriaCo:
It works with a single variable, but breaks the template with multiple variables.

search1="profile_quota_id not_in 3" >>> WORKS
search1="profile_quota_id not_in 3,4,5" >>> does not work

Another ideas I could try?


Try adding more search parameters...

search1="profile_quota_id not_in 3" search2="profile_quota_id not_in 4" search3="profile_quota_id not_in 5"

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
7 years ago
10,148 posts
There's no need to have multiple searches - especially using "not_in" (which is a very low performing search query).

This absolutely should work:

search1="profile_quota_id not_in 3,4,5"

Haven't looked specifically at this, but since it goes through jrCore_list, that is 100% supported.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags