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) »
  • Profile listing view, link to matching data
Pages: [1]

Author Topic: Profile listing view, link to matching data  (Read 1562 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Profile listing view, link to matching data
November 07, 2007, 05:18:11 am
I have created a profile to allow users to search a group (member directory). A few questions/issues:

1) When identifying a profile field as "public user pages and listings" we are told that when the user looks at a listing view, the field will be hyperlinked so they can search matching data on that field. But I observe that hyperlink is only present on custom data fields -- not on built in fields. I've recreated this issue on the demo: http://demo.civicrm.org/joomla/index.php?option=com_civicrm&task=civicrm/profile/view&reset=1&id=265&gid=3
Some of the built-in fields would be very useful to have this feature on (e.g. city, state).

2) I was getting an error on the link (can't access this resource) that's generated for one of my custom fields. The problem was with CRM/Core/BAO/UFGroup.php, line 832, "civicrm/profilel" -- it looks like that's a typo, and should just be "civicrm/profile". When I remove the trailing "l" it works. What's weird is that I wasn't getting the error on the demo, though I've confirmed that it's present in the current 1.9 release. I'm just worried that I might be breaking something by changing that.

thanks,
Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ToddW

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
Re: Profile listing view, link to matching data
November 19, 2007, 03:48:26 pm
I'm having the same issue. Wondering why that code is in there for Public profiles at all?
What's the best way to get rid of those links? Add a custom template and strip HTML from the links?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Profile listing view, link to matching data
November 20, 2007, 11:06:08 am
Brian - That was definitely a typo (line 832 in UFGroup.php) - and it's been fixed in the repository for 1.9 - which is why it's working on the demo. That fix will be included in the next 1.9 distribution.

As far as "hyperlinks" on profile field values - the correct behavior is that any profile field with Visibility = "Public User Pages and Listings" is supposed to be rendered with the hyperlink which searches for contacts with matching data (within the constraints of that profile). This functionality apparently got broken for some (all?) of the built-in fields. I know that a fix that fixes this at least for City and Country was posted to the Kabissa branch of 1.9 recently. I'll try to get some more info on this in case folks want to port it. The feature will definitely be fixed "officially" in 2.0.

Todd -  if you do NOT want the hyperlinks - set the field visibility to "Public User Pages" or "User and User Admin Only" instead. ("User/Admin" visibility should hide the field from anyone viewing the profile UNLESS they are logged in AND have "administer CiviCRM" permission OR they are viewing their own contact record.)
Protect your investment in CiviCRM by  becoming a Member!

ToddW

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
Re: Profile listing view, link to matching data
December 07, 2007, 05:24:45 pm
What if I want to use the profile publicly, say, on a member directory? But I don't want the links (since that would require logging in/access, right?).
Example, http://www.builditgreen.org/civicrm/profile?reset=1&gid=15&force=1

Required a hack to turn them off.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Profile listing view, link to matching data
December 07, 2007, 05:56:59 pm
Try customizing the page/profile templates:
http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Profile listing view, link to matching data
December 08, 2007, 07:26:17 am

hey todd:

that looks like a cool site. Could you please write a case study about it on our wiki ..

thanx

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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Profile listing view, link to matching data

This forum was archived on 2017-11-26.