I want to add a new tab called "Web Tracking" when creating a New Event. I want to do this so that I can keep all the parameters for web tracking separate from the other Event parameters. How do I go about this?

The only relevant file I could find is civicrm/CRM/Event/Form/ManageEvent/TabHeader.php

I have attached a picture in case the description is not clear. (I got the picture from the CiviCRM forum)Tab

  • Can you clarify which version of CiviCRM you are targeting? The screenshot appears to be from an older version of Civi, but my recommendation would be to write extensions using 4.6, the current version. – Coleman May 25 '15 at 16:23

I see now that you are working on core code. But just for the record, if you were doing this in an extension you would proceed by implementing hook_civicrm_tabset.

I figured it out with the help of my mentor Kurund Jalmi.

Make changes to the following files:

1) civicrm/CRM/Event/Form/ManageEvent/TabHeader.tpl

2) civicrm/CRM/Event/xml/Menu/Event.xml

3) Do a menu rebuild

4) Create the corresponding php and template files

  • Unless you are coding for core tpl overrides are really a last resort - so if you aren't doing a core submission Coleman's recommendation is better (assuming it works) – Eileen McNaughton May 25 '15 at 22:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.