Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Displaying Customized Fields.

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
adawson



Joined: 02 Jun 2008
Posts: 85

PostPosted: Thu Jun 05, 2008 8:37 am    Post subject: Displaying Customized Fields. Reply with quote

I've created a variety of customized fields for my events and would like to display them instead of the standard fields.

1-In the month view, instead of the event title, I'd like to display one of these fields, say it's a topic area, like "movies". So instead of the title, "The Full Monty" at 1pm, I'd like the calendar to say, "1pm Movie" with the notes rollover and/or single event view page displaying the complete title.

Is that possible?

2-How about adding a customized field to the other displays (day, week, events)t? That is in addition to the titles, this topic field would also display. For example, in the events list display the list fields would be, "time", "title", "topic" and "category".

I can't really use the category field for this as many of my events have multiple categories and I need to use one specific field to display the events.
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Thu Jun 05, 2008 2:05 pm    Post subject: Reply with quote

Hi,

The code for these can be found in include/classes/cal_helpers/display_*.php. E.g. display_month.php, display_day.php, etc.. Searching for "title" should get you to where the title of the event is printed. You will also have to create a file in Thyme's customize folder named event_fields.php with the following contents:

Code:
<?php

$fields = array("your_custom_field_name,");


Let me know if you have any questions / trouble.
Back to top
View user's profile Send private message Visit poster's website
adawson



Joined: 02 Jun 2008
Posts: 85

PostPosted: Fri Jun 06, 2008 5:19 am    Post subject: Reply with quote

Awesome. Worked like a charm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.