I personally would present a optional field in the table for an introduction
paragraph (optional), if the admin didn't want to write an introduction
paragraph I would then fall back onto creating an excerpt with php/cakephp
and simply ammend "..." to the end with a read more link.

I would allow the admin to set the amount of characters as a preference.

That's how I would do it.

Kind Regards
 Stephen

On 10 December 2010 16:20, georgeman <[email protected]> wrote:

> I want to make an index page or blog posts and display the most recent
> articles as a list, with title, author, date, and also the first
> paragraph. The way it is done at the Bakery:
> http://bakery.cakephp.org/articles
>
> I've looked at Text Helper functions excerpt() and truncate() but
> neither seems able to do it. If we use truncate for example and
> publish the first 100 characters this will either cut the paragraph
> short or publish part of the second paragraph.
>
> Is the best solution to add an extra column in the posts database
> table called 'intro' where the author can put the paragraph or other
> intro text to the article?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Kind Regards
 Stephen @ NinjaCoderMonkey

 www.ninjacodermonkey.co.uk

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to