On 12/15/05, Emmanouil Batsis <[EMAIL PROTECTED]> wrote: > My objective is to implement a monthly newsletter on Lenya 1.2. The > newsletter must: > a) be indexed by lucene as other documents are > b) have it's own template > c) automatically be stored in a structure that "scales forever" and is created > automatically by custom logic somewhere, not manually by the user. Something > like /pub/live/newsletter/yearNumber/month.html > > a) is a non issue. For b), i think the best way in 1.2 is to create a custom > resource type by duplicate the XHTML schema and presentation files, to have a > different template for it.
How is this different from any Lenya document? We have a "News" section with documents named "20050412", "20050501", "20050728", etc.. They appear in Search. They use the normal template, because we do not have any special fields. The structure scales as well as any, but the maintainer must create them under the News document and name them correctly. We also have a "Newsletter", but that is an automatic email of blurbs for new documents that the recipient has not already received. It sounds like you want automatic creation of documents with specific names. Then the maintainer just edits the correct one. For the quantity needed (only 12 per year), you could create two year's worth manually, and save the programming effort. Just don't publish them until later. Are there any new fields to justify using a Custom Doctype? solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
