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) »
  • Changing the Notes Display
Pages: [1]

Author Topic: Changing the Notes Display  (Read 593 times)

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Changing the Notes Display
April 21, 2010, 03:21:43 pm
If a contact has a long note in his Notes section, by default CiviCRM will not display the full note. You need to click 'more...' on the note to see the whole thing.

What can I change so that instead, whenever the Notes tab is clicked, all the notes are displayed in their entirety?



Thanks a million!!!
« Last Edit: May 23, 2010, 01:26:53 pm by David L »

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: Changing the Notes Display
April 21, 2010, 10:55:36 pm
Hello,
This patch might going to work for you..
go to file templates/CRM/Contact/Page/View/Note.tpl line around 97

 - {$note.note|nl2br|mb_truncate:80:"...":true}
 - {* Include '(more)' link to view entire note if it has been truncated *}
 - {assign var="noteSize" value=$note.note|count_characters:true}
 - {if $noteSize GT 80}
 -  <a href="{crmURL p='civicrm/contact/view/note' q="action=view&selectedChild=note& reset=1 &cid=`$contactId`&id=`$note.id`"}">{ts}(more){/ts}</a>
 - {/if}
 + {$note.note|nl2br} 

Also custom template feature would play important role here, you can customize your given template.Here is the documentation u can refer http://wiki.civicrm.org/confluence/display/CRMDOC/Directories.

Thanks
Sushant


       
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Changing the Notes Display

This forum was archived on 2017-11-26.