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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Making email links clickable in search results with mailto:
Pages: [1]

Author Topic: Making email links clickable in search results with mailto:  (Read 513 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Making email links clickable in search results with mailto:
October 14, 2013, 12:09:50 pm
From a recent request to make emails in search results 'clickable' I offer the following patch.  It's on the 4.2 code base, but will likely apply to 4.3 and beyond.  Thanks to Lobo for the assist.

This code applies to both the default search columns AND any Search Result Profile, by using strstr on the key for 'email'.

It occurs to me that this might not be desirable for all installs, but could be seen as in improvement for most.   Alternatively it might be desirable for the email link to go to a "Email Action" within CiviCRM (rather than simply a mailto:), or to give the user a global setting to choose: 1) no link 2) mailto: link or 3) Email action for all search results but that's beyond the scope of my efforts today.

Hope this is helpful to someone.


Try CiviTeacher: the online video tutorial CiviCRM learning library.

SemperFi

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 3
  • CiviCRM version: 4.5.4
  • CMS version: Wordpress 4.0.1
  • MySQL version: MySQL 5.5.16
  • PHP version: PHP 5.3.17
Re: Making email links clickable in search results with mailto:
August 11, 2014, 08:51:23 am
Thank you for sharing, we had the same need and this was very usefull.

@CiviTeam
- Can you consider having this 'mailto' functionality as an option to be activated or not from the Administration Panel for future version ?
- Is it possible to build the result tables by choosing which fields we want to display for each column ? For example, having "State" between City and Country, is not really worthful for people in France, where the region can be identified by the 2 first digits of the postal code.

Thanks


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Making email links clickable in search results with mailto:

This forum was archived on 2017-11-26.