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 (Moderator: Dave Greenberg) »
  • Custom template not being used
Pages: [1]

Author Topic: Custom template not being used  (Read 818 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Custom template not being used
September 02, 2011, 11:09:33 am
I created a customized version of templates/CRM/Event/Form/Registration/ThankYou.tpl and placed it in /var/www/drupal/files/civicrm/templates/ and added that same path to the Global Settings > Directories > Custom Templates. I made a pretty obvious modification but Civi is still using the default template. I ran
Code: [Select]
chmod -R 777 filesJust to see if it was some kind of permissions issue but that did not correct it either. Any thoughts on what might be keeping Civi from using the custom template?

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Custom template not being used
September 03, 2011, 01:54:57 pm
Have you created a similar copy of the full file path within the custom templates directory? i.e.

.../templates/CRM/Event/Form/Registration/ThankYou.tpl should be customised and stored (on your system) in /var/www/drupal/files/civicrm/templates/CRM/Event/Form/Registration/ThankYou.tpl

Any other customisations should follow the same concept.

Another thing, I wouldn't recommend 777 for anything...

“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Custom template not being used
September 08, 2011, 07:14:39 am
That was the problem! Thanks so much for pointing that out to me

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Custom template not being used

This forum was archived on 2017-11-26.