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) »
  • Choose group ID AND profile ID with URL args
Pages: [1]

Author Topic: Choose group ID AND profile ID with URL args  (Read 2940 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Choose group ID AND profile ID with URL args
November 06, 2008, 02:55:10 pm
Hi all,

Is it possible to specify BOTH the group ID AND the profile ID for search results using the URL arguments? I assume it would something containing civicrm/group/search?gid=groud&pid=profile, but I know that syntax won't work.

TIA!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Choose group ID AND profile ID with URL args
November 13, 2008, 03:51:08 am
You can use limit to group feature of profile. So when you do profile search, results are restricted to particular group.

HTH

Kurund
Found this reply helpful? Support CiviCRM

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: Choose group ID AND profile ID with URL args
November 13, 2008, 05:51:55 am
I have about 40 groups that would use the identical profile. I'd really rather avoid creating a separate profile for each, espcecially since that number might change. That's why I had hoped there would be some way to specify both profile and group ID with URL arguments.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Choose group ID AND profile ID with URL args
November 13, 2008, 05:58:25 am
Currently it is not possible. It would be great if you can work on it and submit the patch.

Kurund
Found this reply helpful? Support CiviCRM

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: Choose group ID AND profile ID with URL args
November 13, 2008, 07:02:39 am

hey mike:

so you want to do a contact search isolated to a specific group and display the results via a specific profile?

Extending/hacking the core to do this should be quite easy (or so i think). If you are keen to do this, ping us on IRC and we can help you out

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) »
  • Choose group ID AND profile ID with URL args

This forum was archived on 2017-11-26.