|
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. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Thu Jun 05, 2008 8:37 am Post subject: Displaying Customized Fields. |
|
|
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 |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Thu Jun 05, 2008 2:05 pm Post subject: |
|
|
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 |
|
 |
adawson
Joined: 02 Jun 2008 Posts: 85
|
Posted: Fri Jun 06, 2008 5:19 am Post subject: |
|
|
| Awesome. Worked like a charm. |
|
| Back to top |
|
 |
|
|
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
|
|
|