Overwrite description field to richtext but in view the html-tags are stript.

3 messages Options Options
Embed this Post
Permalink
KiraH () Overwrite description field to richtext but in view the html-tags are stript.
Reply Threaded MoreMore options
Print post
Permalink
Hi,

In Plone 3 I have made a content type that inherite from ATFolder.

I have overwritten the description field because I want it to be richtext. In the edit form everything looks fine and the view get the content from the description field but somewhere in the process the html-tags that was in the content is stript.

I use <p tal:content="here/Description"></p> to get the content from the description field.

I would appreciate if someone could tell me why the html tags is no longer there in the view and ideas to how to get hold on the content with the html-tags.

Kira.
Andreas Jung-5 () Re: Overwrite description field to richtext but in view the html-tags are stript.
Reply Threaded MoreMore options
Print post
Permalink


--On 4. Juli 2008 05:58:11 -0700 KiraH <kh@...> wrote:

>
> Hi,
>
> In Plone 3 I have made a content type that inherite from ATFolder.
>
> I have overwritten the description field because I want it to be richtext.
> In the edit form everything looks fine and the view get the content from
> the description field but somewhere in the process the html-tags that was
> in the content is stript.
>
> I use <p tal:content="here/Description"></p> to get the content from the
> description field.
You must the 'structure' directive of ZPT in order display HTML snippets
properly.

-aj



--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info@... - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (201 bytes) Download Attachment
KiraH () Re: Overwrite description field to richtext but in view the html-tags are stript.
Reply Threaded MoreMore options
Print post
Permalink
Hi aj,

Thanks - yes, there should have been a structure where I pull out the content, unfortunately it dosn't make any differens here because the html-tags I wrote in the richtext field are no longer there.

Maybe I didn't explaned clear enough but my problem is not to get the html to display properly, the problem is that the html-tags I wrote in the richtext field are no longer there when I pull out the content.

Kira.