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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom template
Pages: [1]

Author Topic: Custom template  (Read 6084 times)

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Custom template
April 27, 2007, 07:01:17 am
Hi,

I've been looking in the documetation but I couldn't find anything about customizing the templates. There's field in general settings that allows to define a place wheer those templates are stored but I don't know how to store them. Same name? Same folder hierachy?

Many thanks for your help,

Damien

MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Custom template
April 27, 2007, 07:39:53 am
Damien,

From http://wiki.civicrm.org/confluence/display/CRMDOC/Directories:

"To modify a template (ex. civicrm/templates/CRM/History/Selector/Activity.tpl ) simply copy the path and file in your custom templates directory (ex. drupal/sites/all/civicrm_templates/CRM/History/Selector/Activity.tpl ) You can then modify the custom template.  CiviCRM searches your custom template directory and if it finds a template, it will use that instead of the stock template."

So replying to your question - yes, you need to store the custom template in the same directory hierarchy as the default one.

I guess we should create a separate page in documentation about customising templates so it's easier to find.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom template

This forum was archived on 2017-11-26.