Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Calendar Base Extension > Date and Month labels
Total Posts: 6 - Pages (1): [1]
Author: Mark Woodger
Posted: Jul 15 2008 - 06:06 AM
Subject: Date and Month labels
Hi Jeff

You and Mario have done a superb job on this extension. I'm using the latest version an most of my sites and loving it. However there is one site that I'm not sure if I can use it due to an extra label I added in. I wondered if this was included in the new release or if you could suggest a work round. For aesthetic purposes I separated out the date and month from start date so I could display a large red number and the month in black underneath like the old desk calendars. Is there a way of doing this in a template file without altering the php of the extension?

Thanks,
Mark
Author: Jeff Segars
Posted: Jul 22 2008 - 09:19 AM
Subject: re: Date and Month labels
Mark and I were able to work through this off list so I figured I should follow up here with a solution in case anyone else has similar questions.

Calendar Base provides a Typoscript setting for plugin.tx_cal_controller.view.list.dateFormat which defines how dates are rendered in list view. Generally, this is used to change from 7/22/2008 to July 22, 2008 or something along those lines by using special values like %B and %d. You can actually put any content you want around these values, however, so Mark was able to add the appropriate div tags around both the month and day to get them styled like he wanted.

Thanks,
Jeff
Author: Philipp Hauffe
Posted: Sep 17 2008 - 06:47 AM
Subject: re: re: Date and Month labels
Jeff Segars wrote:
...Calendar Base provides a Typoscript setting for plugin.tx_cal_controller.view.list.dateFormat which defines how dates are rendered in list view.


I have found the solution for the list or the event view, but i do not find a solution for changing the date format in the "event" tab of the Map-extension, which draws the data from cal-extension. I would like to change the date from mm.dd.yyyy to dd.mm.yyyy
(http://www.angele.de/Veranstaltungen-Kartenuebersicht.16.0.html)
Thank you

Philipp

Author: Manfred Hungerland
Posted: Sep 17 2008 - 09:12 AM
Subject: re: Date and Month labels
Hi Philipp

check out this: http://typo3.org/documentation/document-library/extension-manuals/cal/1.1.0/view/10/9/#id4015539

eventDateFormat

String / PEAR Date format

Date format
also: Constants

{$plugin.tx_cal_controller.view.dateFor


Shalom
Manfred
Author: Philipp Hauffe
Posted: Sep 18 2008 - 08:04 AM
Subject: re: re: Date and Month labels
Manfred,

thank you for your answer. I had already tried to include
plugin.tx_cal_controller.view.event.event.dateFormat = %e. %B %y
in both templates, the calendar and the map-page-template.

But that has no result to the date format of the "Event-Tab" in the Map.
Do you have another idea?
Thank you
Philipp
Author: Manfred Hungerland
Posted: Sep 18 2008 - 11:15 AM
Subject: re: Date and Month labels
Hi Philipp

in WEC Config there is also a Data-Format Setting:
Date Format.>> [constants.wec.dateFormat]

Shalom
Manfred
Total Posts: 6 - Pages (1): [1]
You must login to post a message to this conference.