Wednesday 17 May 2006 5:19:23 am
Hi there, Raymond. OK. I`ll try to explain. I`m building one hell of the site. It`s a combination of online shop selling musical instruments and accessories + a meeting point for musicians on other areas. These other areas are “gig postings”, “bands wanted”, “musician wanted”, "band advertise pages" and “demo postings for bands” (available for download). Gig postings are divided in two sections: gigs for individual bands and gigs for venues. Gigs for individual bands are free, gigs for venues are not. Every user, signed on the site, should be able to post, edit and delete own postings no matter what those postings are (gigs, demos...) and all posts and edits should be approved before publishing. Complete site should be easy extendable followed by some sort of CMS. That`s why we decided to enter the world of eZ Publish. After 20 days of searching, reading and clearing cache directly on the server, I`ve managed to work pretty much of it so far. Everything is going fine until I`ve started developing gig postings section.
Like I said, gig postings are divided in two sections. For this purpose, I`ve created one class named GIG containing different attributes (band name, admission, performance date and so on). That one class is used for both individual gigs and venue gigs instances. I`ve created two folders under main Gig Postings folder -> named Individual and Venues. Venue class is a container, so every instance of the venue class can contain instances of the Gig class (gig postings for venues).
So, my questions are:
1. How to allow registered users to edit and delete their own postings like here on forum where you can edit your posts?
2. How to fetch all gigs (individual and for venues) together into one array from two different folders? I need this because gigs for registered venues have privilege to be first in the list ordered descending by performance date. My idea is to add integer field into gig class with possible values 1 and 2, for example, representing source of the gig (individual or venue). 3. How to store instance of the class into two or more folders? Any example of the overrided edit_placement.tpl would be nice. Any ideas how to solve this?
|