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) »
  • filter displayed groups within a profile
Pages: [1]

Author Topic: filter displayed groups within a profile  (Read 737 times)

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
filter displayed groups within a profile
February 23, 2010, 03:01:50 am
Hi,

We use different kinds of groups to organize our individual contacts. We have configured these groups for 'public pages'.
We create profiles where users can (un)subscribe themselfs to/from these groups.
But in these profile, all the public groups will be displayed.
Is there a possibility to filter certain kinds of groups for a certain profile.
Or can we use somewhere, as example, a regular expression for filtering the displayed groups within a certain profile ?

I hope that you understand what i mean. Otherwise ask for more info.

Greetings

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: filter displayed groups within a profile
February 23, 2010, 06:20:02 am

use the buildForm hook to modify the select options of the groups for various profiles. check:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmbuildForm

You will also need to check out pear quickform and figure out how to retreive and modify the select options:

http://pear.php.net/manual/en/package.html.html-quickform.php

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

opdavies

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal
  • PHP version: 5.3
Re: filter displayed groups within a profile
July 31, 2012, 04:25:43 am
Quote from: petbos157 on February 23, 2010, 03:01:50 am
We use different kinds of groups to organize our individual contacts. We have configured these groups for 'public pages'.
We create profiles where users can (un)subscribe themselfs to/from these groups.
But in these profile, all the public groups will be displayed.
Is there a possibility to filter certain kinds of groups for a certain profile.

I need to do the same thing. Did you manage to do this?

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

This forum was archived on 2017-11-26.