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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • how to add new data field for events
Pages: [1]

Author Topic: how to add new data field for events  (Read 1073 times)

webcomm

  • Guest
how to add new data field for events
June 05, 2008, 08:16:49 am
Hi,

I would like to add a new field for my events.  The field will be a text field labeled "Alt Event Page URL".  This will be a place where the user can enter a web address.  I will add logic to the template such that whenever this field is not empty, the event title in my summaries will link to this URL.  When the field is empty, the link will be the normal link to the civicrm event item.

So... what's the best way to add a new field and include it in the form for adding/editing events?

Many thanks,
Ryan

MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: how to add new data field for events
June 06, 2008, 08:43:24 am
The easiest way would be to add new custom field extending Event - see http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=9307 for details. If you want to extend the data model, it's significantly more work - probably consists of adding new column in database and handling it in form class and template. There is no documentation for this kind of extensions, so you would need to take a look at the code for examples.

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

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • how to add new data field for events

This forum was archived on 2017-11-26.