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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civi Event - add new Tab to Event Configuration?
Pages: [1]

Author Topic: Civi Event - add new Tab to Event Configuration?  (Read 1390 times)

gibsonoliver

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 2
    • Northbridge Digital
Civi Event - add new Tab to Event Configuration?
June 22, 2011, 05:31:07 am
Hi All

We've configured a CiviCRM / Drupal installation so that each CiviEvent generated has a correspoding Drupal Node with Image, in this way each CiviEvent has an associated image which Drupal can access. We are looking at a way of adding a link into the Civi Event management side to take a user to the corresponding Drupal node so they can add the event image. We would like to add this as a new Tab (see mock up image - http://www.gmcvo.org.uk/sites/gmcvo.org.uk/files/untitled.bmp). 

We've hunted through the Civi hook and API documentation, but it seems that you can only add tabs to Contacts.  We were wondering if there are any workarounds to this? The only other way that we can think of is to hack Civi core (The tabs seem to be built in civicrm/CRM/Event/Form/ManageEvent/TabHeader.php)

Yours
Oliver
Oliver Gibson, Northbridge Digital

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Event - add new Tab to Event Configuration?
June 22, 2011, 09:29:26 am
Hi. Firstly, you don't need to create images in Drupal--you can make a custom field which is a field in CiviCRM for events and then use the API to get the details of that file.

But to answer your current question, you could add a tab to that page also using jQuery:

http://civicrm.org/blogs/hershel/how-customize-civicrm-pages-jquery

which may well be easier than hacking PHP files.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Civi Event - add new Tab to Event Configuration?
June 22, 2011, 11:20:13 am

Oliver:

hershel's jQ option might be easier.

However, if you'll still need the "Tab" hook, ping us on IRC and we'll add that in. This has come up recently and it should not be too hard for us to add a hook to allow modules to create additional tabs

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

Stulast

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
  • MySQL version: 5.3.8
  • PHP version: 5.5.16
Re: Civi Event - add new Tab to Event Configuration?
November 30, 2011, 05:23:59 am
Was the "tab" hook ever built to work outside of contacts?

Thanks

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: Civi Event - add new Tab to Event Configuration?
November 30, 2011, 05:56:14 am

No, but let us know if u'd like to extend this for other uses. If you can contribute a patch we can get it into the 4.2 release

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

Fredie

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.1.11
  • PHP version: 5.3.8
Re: Civi Event - add new Tab to Event Configuration?
April 12, 2012, 07:20:25 am
Hi... Has an option to add tabs to event and / or profile pages been implemented yet? I would like to be able to create a 'profile create' form with three tabs. Thanks...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Civi Event - add new Tab to Event Configuration?

This forum was archived on 2017-11-26.