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 CiviEvent (Moderator: Yashodha Chaku) »
  • Modifying Event .tpl files, not found?
Pages: [1]

Author Topic: Modifying Event .tpl files, not found?  (Read 791 times)

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Modifying Event .tpl files, not found?
August 21, 2011, 02:46:19 pm
I need to modify EventInfo.tpl so I can implement "one click" registration from the info screen (instead of going to the registrations screen).  But I can't even get past the first step... getting CiviCRM to use the modified EventInfo.tpl file in place of the core file!

Thus far...
1) I've verified (by hacking the core template file) that this is the correct tpl file.
2) Per the floss manual I've added the directory structure "'this site'/files/civicrm/customtemplates/CRM/Event/Pages" and I even tried adding a "templates" directory ... customtemplates/templates/CRM/.... to no effect
3) I've got  the whole /var/www/'this site'/files/civicrm/customtemplates path set in the configuration page at the location for custom templates
4) permissions for the tpl file and the entire directory structure are properly set (same as the core templates)
5) Drupal cache has been cleared.

What's the simple thing I'm missing?  And how's the weather in London?

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Re: Modifying Event .tpl files, not found?
August 21, 2011, 05:57:46 pm
Quote
2) Per the floss manual I've added the directory structure "'this site'/files/civicrm/customtemplates/CRM/Event/Pages" and I even tried adding a "templates" directory ... customtemplates/templates/CRM/.... to no effect

should be "sites/your site/files/civicrm/customtemplates/CRM/Event/Page"
Note it is Page not Pages

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Modifying Event .tpl files, not found?
August 21, 2011, 06:08:37 pm
Quote
should be "sites/your site/files/civicrm/customtemplates/CRM/Event/Page"
Note it is Page not Pages

Oh right - bad typing here, but the directory is correctly "Page"

And excuse my "this site" shortcut...fully stated it is: /var/www/domain1/drupal/sites/site1/files/civicrm/customtemplates/CRM/Event/Page

and the directory for custom templates is set to:
/var/www/domain1/drupal/sites/site1/files/civicrm/customtemplates

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Re: Modifying Event .tpl files, not found?
August 22, 2011, 10:22:07 am
Not sure what it could be. You said you cleared your Drupal cache. Did you also clear your smarty templates cache?

something like
Code: [Select]
rm -rf /path/to/drupal/files/civicrm/templates/en_US/*

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Modifying Event .tpl files, not found?

This forum was archived on 2017-11-26.