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) »
  • pre and post profile text not appearing on profile search
Pages: [1]

Author Topic: pre and post profile text not appearing on profile search  (Read 1086 times)

Nili Steiner

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
pre and post profile text not appearing on profile search
March 05, 2009, 08:44:09 pm
I was looking for why my pre and post profile text did not appear on our profile search in Joomla, only to find that it is deliberate. Can I second the notion in this topic "Profile Search tpl doesn't include intro/outro text fields" ( http://issues.civicrm.org/jira/browse/CRM-4188 ) and say that I believe the template should include the text. I don't know how to change the code to make that happen.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: pre and post profile text not appearing on profile search
March 05, 2009, 09:38:38 pm
hi,

I assume you are running v2.1. You need to customize 'templates/CRM/Profile/Form/Search.tpl' to display profile pre and post help.
go to line around 15 and print {$field.groupHelpPre} and {$field.groupHelpPost} these variables will give you corresponding values.

You might want to use Custom template feature Or you can customize same template (make sure to get backup of template file).

You might want to take a look for CiviCRM debugging tools which will help you to debug the code.

kiran
« Last Edit: March 05, 2009, 09:52:36 pm by kiran »
You Are Designed To Choose... Defined By Choice.

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: pre and post profile text not appearing on profile search
April 22, 2009, 03:49:11 am
Quote from: kiran on March 05, 2009, 09:38:38 pm
I assume you are running v2.1. You need to customize 'templates/CRM/Profile/Form/Search.tpl' to display profile pre and post help.
go to line around 15 and print {$field.groupHelpPre} and {$field.groupHelpPost} these variables will give you corresponding values.

If these lines are put within the foreach from=$fields, this results in the profile help text being duplicated by the number of fields on the search form. I'm not clear why the profile-wide help text is stored (and therefore duplicated) per field. I used the following, just above the <table> above the foreach:

Code: [Select]
    {assign var=field value=$fields|@reset}
    {$field.groupHelpPre}
    {$field.groupHelpPost}
    <br />

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • pre and post profile text not appearing on profile search

This forum was archived on 2017-11-26.