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) »
  • Deleting date from the "When" column, etc.
Pages: [1]

Author Topic: Deleting date from the "When" column, etc.  (Read 1497 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Deleting date from the "When" column, etc.
April 22, 2009, 08:11:36 am
Is there a method of deleting just the date (but not the time) from the "When" column in the "ICalendar.tpl" file?  I only want the time of the event to show since they are all on the same day.  See my attached screenshot.

Also - is there a best practice method of changing the "Upcoming Events" H2 at the top of the page that contains the ICalendar.tpl file?  What template contains that H2?

Thanks in advance.

-backdrifting

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: Deleting date from the "When" column, etc.
April 22, 2009, 08:25:35 am
Quote
Is there a method of deleting just the date (but not the time) from the "When" column in the "ICalendar.tpl" file?  I only want the time of the event to show since they are all on the same day.  See my attached screenshot.
You will have to hack the code to show only time. Modify CRM_Event_BAO_Event::getCompleteInfo();

Quote
Also - is there a best practice method of changing the "Upcoming Events" H2 at the top of the page that contains the ICalendar.tpl file?  What template contains that H2?
I think drupal sets the title in H2

Kurund
Found this reply helpful? Support CiviCRM

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Deleting date from the "When" column, etc.
April 22, 2009, 08:36:03 am
Hmmm - yes but that's not a block in Drupal, so what Drupal template file contains the "Upcoming Events" H2?  I don't think that's correct - it should be a CiviCRM template that sets that no?

-backdrifting

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Deleting date from the "When" column, etc.
April 22, 2009, 08:37:26 am
Where is that template file (CRM_Event_BAO_Event::getCompleteInfo();)?

-backdrifting

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: Deleting date from the "When" column, etc.
April 22, 2009, 09:06:56 am
Quote
Hmmm - yes but that's not a block in Drupal, so what Drupal template file contains the "Upcoming Events" H2?  I don't think that's correct - it should be a CiviCRM template that sets that no?
CiviCRM sends the text for the title, and H3 is set by Drupal. Currently it is not part of CiviCRM template.

Quote
Where is that template file (CRM_Event_BAO_Event::getCompleteInfo()?
This function is in CRM/Event/BAO/Event.php

Kurund

Found this reply helpful? Support CiviCRM

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Deleting date from the "When" column, etc.
April 22, 2009, 10:38:21 am
Ok, thanks.  So how do I change/tweak the text that CiviCRM sends for that header?  That text is coming from some template in CiviCRM correct?  I just need to change that text.

-backdrifting

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Deleting date from the "When" column, etc.
April 22, 2009, 10:42:03 am
So is this the part of that function that I want to tweak?

<code>
   // get events with start date >= today
            $condition =  date("Ymd");
        }

</code>

-backdrifting

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Deleting date from the "When" column, etc.

This forum was archived on 2017-11-26.