Dmitry Belitsky said the following on 01/15/2010 06:56 AM:
> Hello there,
> how can i use custom number of words/letters for generating teasers  
> for articles?
> Is there are extension for it?
> I only found Summarize extension, but this is not what i want for my  
> clients.
> I want simplest solution, which will cut first paragraph or first n  
> letters.
> Thanks.

In many types of blog software there is a mechanism whereby you can has
the long list of postings, or at least the 'first paragraph', each with
a "read more..." tab at the end.  In some, you do this by inserting a
marker at that point.

In my Radiant based blog I achieve the same thing by use of page-parts.
What you call the "teaser" I have as the main page part.  If you just
visit the base you get the list of these 'first paragraphs'.  If you
click though you get the whole article, which is in additional page-parts.

Of course you could equally well have a page part called 'teaser'.
I can imagine a RSS service that ignores the real body but serves up the
'teaser'.  Of course in that case you'd have to redundantly fill in the
'teaser' page part, which is why I refer my approach.  DRY.

Of course this depends whether or not you want to 'extract'.  I think my
approach offers more control and less redundancy, but then I'm bigoted
about it since its my idea :-)

To be honest, the Layouts I use make extensive use of page parts and
inheritance, as I mentioned in an earlier posting about constructing a
sidebar.

-- 
"The government who robs Peter to pay Paul can always depend on the
support of Paul."
-- George Bernard Shaw
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to