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) »
  • Profile select child group shows parent members too
Pages: [1]

Author Topic: Profile select child group shows parent members too  (Read 300 times)

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
Profile select child group shows parent members too
September 28, 2014, 08:29:52 am
Hi guys

I have a site with Areas of law as tags and as groups - im desperately trying to achieve a profile which has a dropdown selector on the search page (you choose eg litigation general) with proximity activated and then the results page shows those who are tagged/group members of that criteria.

it almost works

if i use tags the tags field doesnt show up at all but i also have custom field with all the tags in from when i imported the data originally and that works but not as a selector, it wants you to type into the field and with 103 areas of law I dont want people to have to guess; providing them with a dropdown is much more user friendly.

so i looked into groups instead of tags - i created a parent group called All Members and then two child groups for litigation general and crime general and added members to test this out - i only want to show child groups to filter my directory so i created a profile that has limit listings to group with the parent selected. I then set the parent as user and admin only so it doesnt show in the profile (ie not public pages). But if you then go to the profile and tick litigation general and then fill in the proximity stuff the system generates the following results -

Displaying contacts where:
Contacts IN Litigation General Group or All Members AND Group Status - "Added" ...AND...
Proximity search to a distance of 20 km from b14 6DD, West Midlands, United Kingdom

so its 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. i want it to only show the child group members but there is no option in the profile settings to select multiple groups, you can only select one ie the parent.

We desperately need this to work as it should this coming week due to the clients deadline - 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 simply select all the children.

Please civi people can you reply soon because Im supposed to have completed this tomorrow and Im stuck! I feel that i am soooo close and one reply from you will solve my dilemma ;)

ps also there is the problem that if you make other groups visible as public pages they show up in this profile alongside my areas of law child groups despite not being related at all to the "limit listings to group" selected group (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 in the profile settings only applies to the results not to the groups available to choose in the search selector. The problem is I want to publish another profile to show members of the committees so I need that group set to public pages.

Jodee (desperate hoping for a quick reply!)

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: Profile select child group shows parent members too
September 28, 2014, 08:59:16 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!

ps the issue remains that any groups set to public pages show in my profile, but ill deal with that separately

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile select child group shows parent members too

This forum was archived on 2017-11-26.