I use an event list for concerts on a website and it works very well. But in the FarCry webtop I need formatted dates in the event list display. At the moment the dates are displayed in a shortened form and that is really not very practical for me. Where (and how) can I change the date format in the webtop event list without changing core files? I would be grateful for any help.
Try adding ftDisplayPrettyDate="false" to your date properties, I think
that should do the trick. If you need a specific date format you can also
use ftDateFormatMask.
I think, what I do need was described by Andrew Mercer under: https://farcry.jira.com/browse/FC-2381. Probably I have to do something like that in /projects/webskin/dmEvent/webtopBody.cfm, because I want to change the display in the webtop - right ?
<!— @@displayname: Event Webtop Body —>
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />
<!--- Override the client side validation for the filter fields. --->
<cfset stFilterMetaData = structNew() />
<cfset stFilterMetaData.title.ftValidation = "" />
<!--- Does NOT work, because the attribute "stPropMetaData" does not exist in "ft:objectadmin" ! --->
<cfset stPropMetaData = structNew() />
<cfset stPropMetaData.startdate.ftDisplayPrettyDate = "FALSE" />
<cfset stPropMetaData.startDate.ftDateMask = "dd.mm.yyyy" />
<cfset stPropMetaData.publishDate.ftDateMask = "dd.mm.yyyy" />
<cfset stPropMetaData.datetimecreated.ftDateMask = "dd.mm.yyyy" />
<ft:objectadmin
typename="dmEvent"
permissionset="event"
title="#application.rb.getResource('eventsAdministration', 'Event Administration')#"
columnList="title,startDate,catevent,publishdate,datetimelastUpdated"
sortableColumns="title,startDate,publishdate,datetimelastUpdated"
lFilterFields="title"
stProMetaData="#stPropMetaData#"
stFilterMetaData="#stFilterMetaData#"
sqlorderby="startDate asc" />
<cfsetting enablecfoutputonly="false">