El mié, 29-03-2006 a las 13:42 +0200, Paloma Gomez escribió: > Hi all, > > I want to create a calendar of events in my publication and > I was thinking about the way to implement this - I'm working > with Lenya 1.4. I don't have any experience in developing, > so I'd like to ask for advice on the best approach. Please, > correct me if I'm making wrong assumptions :-). > > I think I should create a custom module. It should gather data > about the events from the editor and store them in a database, > where they could be fetched to be displayed in a calendar. > I've got some questions on these ideas. > > - The custom module > I should create it under <my-pub>/lenya/modules, right?
Well it depends, if it is only needed in *one* pub then I would store it in <my-pub>/modules (like it is in the default pub). NOTE: remember to add this location in the l.b.p. > > -The database approach > I've seen another open source CMS based on Cocoon which stores > the events' data in xml files. I think that as soon as the number > of events grow, it might be inefficient, but maybe I'm wrong. Well IMO to start with pure xml is the easiest way. As soon as you get many events you can thing on connecting to a db. That makes the tasks involved smaller and easier to understand. > -Using an existent module within a module > I've been looking at the CForms module and I think I could modify > the default form to gather the data. But I don't know if I should copy > the CForms module to <my-pub>/lenya/modules and replace Cforms with > <my-mod> in all files and add the required functionality or if there is way > to make use of it from my module. The Cform module is just a small sample. I reckon you can copy the cform module to your module-src dir and start to modify it. salu2 -- Thorsten Scherler COO Spain Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]