Editor in descriptionfield

25 views
Skip to first unread message

jedek

unread,
Apr 5, 2010, 8:40:14 AM4/5/10
to Plone: quills
Hi Quills.

I am using Quills Enabled on Plone 3.3.5 and was wondering if it is
possible to get the texteditor in the description field.

Would like to be able to add images ore embedded stuff on the
blogfront.

Thanks,

J.

Tim Knapp

unread,
Apr 5, 2010, 4:24:27 PM4/5/10
to plone-...@googlegroups.com

Without looking into it closely I'd say know as the description field by
default only accepts text. You could use something like
archetypes.schemaextender, though, and see if you can change the field
to a RichText field. But I'm unsure how that would effect the indexing
and the Dublin Core metadata so YMMV.

-Tim

>
> Thanks,
>
> J.
>


Clayton Parker

unread,
Apr 6, 2010, 8:38:35 AM4/6/10
to plone-...@googlegroups.com

It's not quite as simple as that. We have done this for a couple of
clients before. We did the following:

- Add a rich text field via schema extender with the label
description
- Hide the original description field
- Create a subscriber to turn the rich text field into plain text and
store that in the Description field so that it shows up in search
templates, etc. properly.
- Description isn't a viewlet on the stock templates in plone, so you
will have to override those templates if need be (Quills is probably
the same)
- Create a custom rich_description index that gets the rich text if
it is available, or falls back to the plain text version if the type
wasn't extended. This was for the folder_listing pages and the like.

That's how we accomplished it for the stock types in Plone. But it still
applies to what you are trying to do.

Clayton
--
cla...@sixfeetup.com | +1 (317) 861-5948 x603
six feet up presents INDIGO : The Help Line for Plone
More info at http://sixfeetup.com/indigo or call +1 (866) 749-3338


Jan Hackel

unread,
Apr 7, 2010, 2:55:19 AM4/7/10
to plone-...@googlegroups.com
This should probably be filed as a request for enhancement to Plone.

Grüße
Jan Hackel

jedek

unread,
Apr 7, 2010, 4:59:57 AM4/7/10
to Plone: quills
Thanks for the response! The solution looks indeed not quite as simple
as I hoped. Gone see if I can accomplish it, ore file a request for an
enhancement of Plone.

J..

Reply all
Reply to author
Forward
0 new messages