Monday 14 November 2005 7:41:06 am
Hi, Can some one help choice the best approach ? Here is what I want to do : I have made a class named "event" used to store calendar events such as a birthday, a shop opening date, a special discount week, a movie ... those events are of different nature : some are cultural, other are commercials... I would like to show them in different places of a site (I mean in different folders of my content structure), depending of their nature. what is best : - create an "events" folder in media. Change my event class to add a "nature" attribute. Create all events in the media/events folder. Then create one overide template of folder.tpl for each nature of event. That template will have to fetch events using a filter attribute. - create an event folder in media, create all events in it. For each event that I want to see in other places, add new locations. - create a folder content/calendar. In it create "cultural", "commercial", "cinema", "theatre" folders. Put in them my events. Fetch recursively content/calendar if I want to see all events... May be there are smartest solutions that I can not imagine.
|