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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.0 Release Testing »
  • Template overrides by id
Pages: [1]

Author Topic: Template overrides by id  (Read 2417 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Template overrides by id
August 25, 2009, 08:50:46 pm
id-specific template overrides don't seem to be working in v3.0, alpha 3.
primary directory overrides work. But not if there's an id subdirectory.

i'm using:
CRM/Profile/Form/8/Dynamic.tpl
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Template overrides by id
August 25, 2009, 10:56:13 pm
Quote
CRM/Profile/Form/8/Dynamic.tpl

It should be CRM/Profile/Form/8/Edit.tpl

Kurund
Found this reply helpful? Support CiviCRM

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Template overrides by id
August 26, 2009, 04:42:53 am
But the mods I'm making are to the Dynamic.tpl file.
I don't think I've had a problem with id-specific overrides to this file before. Are you saying only certain profile files respect the id subfolder overrides?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Template overrides by id
August 26, 2009, 05:43:39 am

when u override with id specific templates, please delete templates_c directory. smarty caches the files and uses the file in the original path instead

lobo

p.s> i figured this out a few days back :)
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Template overrides by id
August 26, 2009, 06:15:57 am
I cleared out the cache -- still isn't working.

I think Kurund is on the right track. /Profile/Form.php will retrieve /Form/ID/Edit.php but doesn't extend to Dynamic.php. So the id override of that file never happens. I'm guessing it should happen in /Form/Dynamic.php as with /Page/Dynamic.php ?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.0 Release Testing »
  • Template overrides by id

This forum was archived on 2017-11-26.