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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • subtype template files not working after upgrade to 4.1.3
Pages: [1]

Author Topic: subtype template files not working after upgrade to 4.1.3  (Read 1202 times)

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
subtype template files not working after upgrade to 4.1.3
July 06, 2012, 07:51:03 am
I recently upgraded a (test) installation from 3.4.6 to 4.1.3 . I had been using several custom subtype templates, according to the instructions on this page:
http://wiki.civicrm.org/confluence/display/CRMDOC41/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

... so in my custom templates folder I have CRM/Contact/Page/View/SubType/Student.tpl
which was a modified copy of  CRM/Contact/Page/View/Summary.tpl

but the subtype template files don't appear to be being read ... instead the Summary.tpl is being used ( the on that is in my custom_templates folder- so at least that is working).

Has anyone else seen this behavior?

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
Re: subtype template files not working after upgrade to 4.1.3
July 23, 2012, 10:05:17 am
It appears this is an issue for contact types (not just SubTypes). My file individual.tpl in the custom templates folder: custom_templates/CRM/Contact/Page/View does not get rendered either.

JohnM

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
Re: subtype template files not working after upgrade to 4.1.3
September 20, 2013, 11:14:11 am
This still seems to be an issue in 4.3.5. I have just set up screens for 3 subtypes - Student.tpl, Parent.tpl and School.tpl

None of them seem to be working although I can customise the Summary.tpl file and that is rendered ok. It would be good to have this sorted.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: subtype template files not working after upgrade to 4.1.3
September 22, 2013, 02:27:02 am
Able to reproduce this for v4.3 and v4.4.

Filed an issue here  - http://issues.civicrm.org/jira/browse/CRM-13438.

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

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: subtype template files not working after upgrade to 4.1.3
September 25, 2013, 05:19:16 am
Issue has been fixed - https://github.com/civicrm/civicrm-core/pull/1695 for v4.4.

Problem is there are special characters around the subtype, due to which template is not detected and therefore default template (Summary.tpl) is used.

Note the problem was only with page view (and not add/edit case).
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

JohnM

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
Re: subtype template files not working after upgrade to 4.1.3
September 30, 2013, 08:27:50 am
Thanks - that's great news!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • subtype template files not working after upgrade to 4.1.3

This forum was archived on 2017-11-26.