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) »
  • Custom template per type of activity
Pages: [1]

Author Topic: Custom template per type of activity  (Read 1201 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Custom template per type of activity
February 03, 2009, 03:26:16 am
Hi,

I'd need to have a different template for one type of activity (eg hide the Location or duration Fields, that don't have any sense for my custom activity type).

Instead of having to hack my way in templates/CRM/Activity/Form/Activity.tpl I was wondering if having the same system as for the profiles (eg. having a CRM/Activity/Form/Activity/4.tpl that automatically override the default template for activity type 4) is something that could be worthwhile doing.

Last but not the least, is this going to be complicated for us to implement ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Custom template per type of activity
February 03, 2009, 05:57:09 am
I don't think it would that difficult. This are the commits when we implemented: http://issues.civicrm.org/jira/browse/CRM-2758

http://fisheye.civicrm.org/changelog/CiviCRM?cs=14333
http://fisheye.civicrm.org/changelog/CiviCRM?cs=14340

You should follow same path.

HTh

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Custom template per type of activity
March 15, 2009, 11:22:30 am
Hi,

almost done, but the dojo contact selectors ajax use the same template than the main templates/CRM/Activity/Page/Tab.tpl ?

And no matter what, the activityType seems to be incorrect.

With Contact     

Assigned To    

(I leave it out the svn for now), but can give a patch for review

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Custom template per type of activity

This forum was archived on 2017-11-26.