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) »
  • Display Event Date but Not Event Time
Pages: [1]

Author Topic: Display Event Date but Not Event Time  (Read 277 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Display Event Date but Not Event Time
September 30, 2014, 05:20:26 pm
Use case:

Client is using events for class registrations. In the event info field they will list all class dates (they are NOT requesting repeating events functionality). Also in the event info the time the class meets will be listed (e.g. 7:30 PM ET to 9:30 PM ET).

For the event start/end field they just want the first and last calendar dates for the class to be listed (e.g. Feb. 19, 2015 - June 4, 2015).

Any ideas how this can be achieved?

The site is CiviCRM 4.5.0 with Drupal 7.31.

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Display Event Date but Not Event Time
October 01, 2014, 01:00:17 am
One easy way to do this is with a template customization.

On this line https://github.com/civicrm/civicrm-core/blob/master/templates/CRM/Event/Page/EventInfo.tpl#L133 changing the smarty variable modifier (http://www.smarty.net/docsv2/en/language.modifiers.tpl).

You could potentially only do this for events of a particular type if they are using it for other events.

You might want to read up on template customisation best practice in general if you don't know how to do that already.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Display Event Date but Not Event Time

This forum was archived on 2017-11-26.