CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Using child groups for searching within a directory
Pages: [1]

Author Topic: Using child groups for searching within a directory  (Read 387 times)

EranSch

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 3
    • Personal Blog
  • CiviCRM version: 4.5.X
  • CMS version: 4.X
  • MySQL version: 5.5.X
  • PHP version: 5.5.X
Using child groups for searching within a directory
August 04, 2014, 12:30:07 pm
Hey there!

We're putting a few "user directory" type profiles together and I seem to be having some trouble getting the expected functionality. The main goal is to display a directory of all members of a given group (the easy part, satisfied using the 'Limit listings to a specific Group?' selection) but allow the user to filter the list by selecting one or many child groups underneath the smart group assigned to the profile.

Adding Contact::Group(s) as a field to the profile looks promising and it even displays the child groups within the Search Criteria. The problem, it seems, is that even when a child group is selected within the criteria, the results returned are those of the parent group.

Knowing full well how terrible I am at describing these things, I went ahead and created some groups and a profile on the sandbox site here:
http://drupal.sandbox.civicrm.org/civicrm/profile?force=1&gid=15

Anyone experience this before?

jodee

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.5beta9
  • CMS version: joomla3.3
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Using child groups for searching within a directory
September 28, 2014, 07:08:55 am
Yes absolutely I have the same problem - i want to use child groups to filter my directory but the system is showing all contacts from the parent too because it is working on the "limit listings to group" filter as well as the child group filter selected in the profile itself.

We desperately need this to work as it should this week - Ive tried creating smart groups instead of normal groups in case they were handled differently.

Either we need the parent to be ignored as it should be or we need multi select in the limit listings to group setting so we dont have to select the parent at all we can select all the children.

Please civi people can you reply soon because Im supposed to have completed this tomorrow and Im stuck!

ps also there is the problem that if you make other groups visible as public pages they show up in this profile despite not being related at all to the "limit listings to group" selected group - another bad aspect of groups in profiles for directories that desperately needs addressing. (see screenshot showing "committees" group in selector which shouldn't be there as its parent is not "All Members" group. It seems that the limit filter only applies to the results not to the groups available to choose in the selector. The problem is I want another profile to show members of the committees so I need that group set to public pages.

Jodee (desperate hoping for a quick reply!)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using child groups for searching within a directory
September 28, 2014, 08:32:28 am

If either of your clients have the money to hire a developer to take a look and fix the issue that would be great.

I suspect the below is not a trivial issue and will require some debugging and analysis

The service provider listing gives u a list of orgs. Web access might be s good best bet

Lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jodee

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.5beta9
  • CMS version: joomla3.3
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: Using child groups for searching within a directory
September 28, 2014, 08:58:38 am
hoohoo i totally fixed it -

if youre searching by child group you dont need to select anything in the limit listings to group selector on the profile criteria because the profile search does that for you. so i set the parent group as visibility user and user admin only so it doesnt show in the front end profile form only the child groups show.

thank the lord!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using child groups for searching within a directory
September 28, 2014, 09:12:05 am
Awesome, glad u could fix it

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Using child groups for searching within a directory

This forum was archived on 2017-11-26.