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 Profiles (Moderator: Dave Greenberg) »
  • Custom location of search.tpl file for profile searches - help!
Pages: [1]

Author Topic: Custom location of search.tpl file for profile searches - help!  (Read 731 times)

Tony Horrocks

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 7
    • Fabriko Limited
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7
Custom location of search.tpl file for profile searches - help!
February 08, 2012, 11:57:54 am
Ive created a profile for a searcheable directory. Ive found listings.tpl and put it into my custom directory for the profile ID 87

ie mycustomcividirectory/CRM/Profile/Page/87/listings.tpl

Im also trying to customise the search.tpl form that is called by listings.tpl

So I'm storing my custom form at

mycustomcividirectory/CRM/Profile/Form/87/search.tpl

But I'm not seeing my edits.

Any help would be appreaciated
Tony Horrocks
Author of the CiviCRM CookBook https://www.packtpub.com/web-development/civicrm-cookbook

quentong

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.23
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Custom location of search.tpl file for profile searches - help!
May 02, 2012, 02:49:14 pm
It took a while to understand how this goes (and am still learning). I created a profile for searching a member directory and the id is 8. Set my path to custom templates at: files/civicrm/templates_c. In that directory setup: CRM/Profile/Page/8 and CRM/Profile/Form/8

In CRM/Profile/Page/8, I have Listings.tpl

In Listings.tpl, modified line 31 to:

include file="CRM/Profile/Form/8/Search.tpl"

Now  I modify Search.tpl for my member's directory. If you modify line 31 in Listings.tpl accordingly, your edits to Search.tpl will appear.

HTH

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom location of search.tpl file for profile searches - help!

This forum was archived on 2017-11-26.