Paloma Gomez wrote:
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 guess it makes sense to use a module for that purpose.

I've got some questions on these ideas.

- The custom module
I should create it under <my-pub>/lenya/modules, right?

No. You use this location only to override resources of
Lenya core modules. For your own modules, you can choose
an arbitrary location, e.g. at the same level as your
publications:

/home/paloma/pubs/
            /modules/


-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.

How many data records do you think will be filed?
If there are several thousands, a database will certainly be
worth considering.


-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.

You can access resources from other modules directly using

    fallback://lenya/modules/cforms/xslt/...

But I would not recommend this practise, because it relies on
internals of the cforms module. If you think that the cforms
module contains internal functionality which is useful for
other modules, you might want to make a proposal on [EMAIL PROTECTED]
to provide this functionality as a public service of the cforms
module.

-- Andreas

--
Andreas Hartmann
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]

Reply via email to