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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is it possible to create a custom template for a particular custom data group
Pages: [1]

Author Topic: Is it possible to create a custom template for a particular custom data group  (Read 1497 times)

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Is it possible to create a custom template for a particular custom data group
December 09, 2009, 05:03:07 pm
Hi guys,

I want to customize the format for a custom data group which has multiple records. So I assume creating a custom smarty template would be the right choice.
I found that all custom data groups using CRM/Contact/Page/View/CustomDataView.tpl as the template. I'd like to know if it is possible to create a custom smarty template to be used by a particular CustomData group without changing the php code.

Thanks,
George.

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: Is it possible to create a custom template for a particular custom data group
December 09, 2009, 09:30:03 pm

yes, use conditionals in the custom group template

check:

http://svn.civicrm.org/sfschool/trunk/templates/CRM/Custom/Page/CustomDataView.tpl

for an example

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Re: Is it possible to create a custom template for a particular custom data group
December 10, 2009, 03:28:15 pm
Thanks lobo. That's really helpful.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Is it possible to create a custom template for a particular custom data group

This forum was archived on 2017-11-26.