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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Outputting a list of contact names
Pages: [1]

Author Topic: Outputting a list of contact names  (Read 1159 times)

bchoc

  • Guest
Outputting a list of contact names
February 12, 2008, 07:13:46 pm
I'm trying to publicly output a limited list of contacts for an organization.  The organization this is for wants to display list of member organizations.  However, this could also easily be applied to a list of board members or volunteers, or anywhere you want to pull a live list out of the database.  It seems to me that the best way to accomplish this is with a Profile.

So I setup a profile to just display the name of the organization, and limited it to the membership group.  They only want to display organization names, so this profile has one field (Organization Name).  No search is wanted, so after creating the profile, I accessed it with this sort of link:
/civicrm/profile?force=1&gid=1&search=0

An unexpected thing occurred: the Organization name was listed twice.  I guessed that one is included in the search results regardless of what fields are selected, so I unchecked "In Selector" to remove the second one and then got the error "No fields in this Profile have been configured to display as columns in the listings (selector) table."  So it would seem it is not possible to display a list of names only?

On a related inquiry, is it possible to suppress the "Displaying contacts where ..." box?  Or is this exceeding the formatting capabilities of the Profile system?  Is there another way to generate such a list?

Thanks,
bc


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: Outputting a list of contact names
February 12, 2008, 09:24:35 pm

Please read the following page: http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

You can use this method to accomplish both your tasks.

1. Modify the template to only display one organization_name, even though the profile output includes both

2. You can also suppress the "Display contacts..." block in your custom template

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

bchoc

  • Guest
Re: Outputting a list of contact names
February 13, 2008, 09:20:16 am
Hey, thanks.

A documentation thought... I read through the Profile documentation in the Administration section pretty thoroughly (http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles+Admin), and it didn't occur to me to jump down to the Development section to define what the profile looks like.  Would it be possible to include a link to this Customize Profile Screens page in the "Profiles FAQ's, How Do I..." section to this theming admin section?  (Or somewhere else, if there's a more appropriate place.)  Of course, if I just missed it and it's actually linked somwhere, maybe I didn't go through it as well as I thought.  :P

bc
« Last Edit: February 13, 2008, 09:21:52 am by bchoc »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Outputting a list of contact names
February 13, 2008, 01:34:47 pm
Excellent suggestion. Links added to main Profile Admin page and Profile FAQ.

http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles+Admin

http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles+FAQ%27s%2C+How+Do+I....
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Outputting a list of contact names

This forum was archived on 2017-11-26.