Thanks Marc,
<tal:block tal:content="structure
python:doc['description']"></tal:block>
works fine.
Andrius
-----Original Message-----
From: cps-users-bounces lists.nuxeo.com
[mailto:cps-users-bounces lists.nuxeo.com] On Behalf
Of M.-A. DARCHE
Sent: Tuesday, May 22, 2007 3:41 PM
To: cps-users lists.nuxeo.com
Subject: Re: [CPS-users] Glossary view
Andrius a écrit :
>
> I know very little of the python but learning, please
help me to set
> Glossary view in html not only in text.
>
> I want to have possibility to write in html
explanations of the
> definitions in glossary. In /portal_layouts/ I have
changed Render
> format of the description to html. Now individual
entries we can write
> in html and they are shown correctly. But displaying
all entries in
> glossary is not in html, it gives it in text format.
>
> In /portal_skins/cps_document/layout_glossary_view I
have - <p
> tal:repeat="item items">
> <tal:block tal:define="doc
item/getContent">
> <a tal:attributes="name
string:q${repeat/item/number}"></a>
> <strong
tal:content="python:doc['title']" /><br
/>
> <tal:block
tal:content="python:doc['description']" />
> </tal:block>
> </p>
>
> What is wrong here that I do not have description in
html if it is
> written in html format?
>
Try to use "structure" :
<tal:block
structure="python:doc['description']" />
cf. Zope Page Templates Reference (ZPT)
http://www.zope.org/Documentation/Books
/ZopeBook/2_6Edition/AppendixC.stx
Cheers,
--
Marc-Aurèle DARCHE
Open Source Enterprise Content Management (ECM) http://www.nuxeo.org/
NUXEO (Paris, France) http://nuxeo.com/
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|