You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Emmanouil Batsis <ma...@geekologue.com> on 2005/12/15 15:15:30 UTC

Creating a newsletter or other periodical

Hello lenya users,

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.

My main problem is c): has anyone implemented anything similar? Any pointers 
welcome.

Thanks,

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Creating a newsletter or other periodical

Posted by so...@apache.org.
On 12/15/05, Emmanouil Batsis <ma...@geekologue.com> 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: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org