Forums / Setup & design / object name pattern and ezdatetime

object name pattern and ezdatetime

Author Message

Mads Ovesen

Wednesday 21 December 2005 1:31:55 pm

Hi,

I have a class of meetings with (among others) a startdate attribute (ezdatetime). I have chosen the startdate combined with the header of the meeting as the object name pattern of the class. The problem is that ez returns this pattern as a datetime + header. For examlple:
Wednesday 29 June 2005 2:00:00 pm Ph.d.-defense. In this way I cannot sort all the meetings in the backend by name, so that they appear a chronological order. Is there any way to remove the weekday name, so that they will be listed chronologically in the backend??

Thanks in advance!

/m

Mads Ovesen

Wednesday 21 December 2005 2:16:30 pm

Ok I solved this by overriding the folder.tpl in admin. All meetings must be children of a folder. I then check if the contentclass id of the children is that of the meeting class. If it is, I fetch the objects and sort them by the startdate attribute, else I sort them by $sort_array. Doesn't seem as the most elegant solution though.

/m