Entry Body and Extended Body query

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
snowcrash
Regular
Posts: 12
Joined: Tue Nov 22, 2005 2:38 pm
Location: London

Entry Body and Extended Body query

Post by snowcrash »

Hello

Is there a plugin or a feature which allows the text of the entry body to be automatically moved into the extended body when it exceeds a certain word count?
So you could set a number of words in the entry body, and if it is exceeded, the text is moved into the extended body.

I understand there's a pagination plugin, that works on for the extended body in a similar way, but not for the entry body?

thanks

ps. the reason why I''m asking is that for an open group blog, some contributors will just insert all their text in the entry body.
And also, I would like it that the list of blog enteries are restricted to titles and short entry bodies

EDIT: I guess an alternative would be a plugin which gets rid of the extended body entirely to simplify the interface for a group blog with posts auto moved as above (and the extended options removed too - see my other post http://www.s9y.org/forums/viewtopic.php?t=3686)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Entry Body and Extended Body query

Post by garvinhicking »

You could modify the entrycheck plugin to say that entries with a boder longer than X characters cannot get added?

But a plugin that moves the body into the extended body would be really easy to code. Have a look at the wordwrap plugin for example. You would just have to register the 'backend_save' hook and split up the entry portion. A very easy thing to do for a first plugin. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply