Hi,

 

What you want to do can be achieved with the sentence "structure", your tal block should be like this:

 

<tal:block tal:replace="structure response/content" />

 

Another simple example is:

 

<tal:block tal:replace="structure string:<div>Hello world</div>" />

 

Regards.

 

JoseLuis de la Rosa Triviño
Becario Área de Sistemas de Información
FUNDACIÓN IAVANTE
[EMAIL PROTECTED]
Tel. 951 015 300

 

Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información confidencial exclusivamente dirigida a su(s) destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.

This e-mail and any attachments are confidential and exclusively directed to its adressee(s). Any copy or distribution will have to be authorized by IAVANTE.

 

-----Mensaje original-----
De: lopez adrian [mailto:[EMAIL PROTECTED]
Enviado el: martes, 23 de mayo de 2006 13:34
Para: [email protected]
Asunto: [CPS-devel] ZPT and render mode of html content

 

Hello,

I have just one question:
I have to work the faq item of CPS. I dont like how the Faq items are displayed in the FAQ i want them to have HTML Render.
So i change the render mode of the faq item in their layout. when i see FaqItems individually the rendering is good. But when i see them in the FAq its Plain text (without jump line).

So i search wich file provide the layout of the FAQ and i found this "layout_faq_view.pt".
this file render all the Faq items with tal code:

  <hr class="faqBorder"/>
  <tal:block repeat="item items">
    <div class="faqResponse"
         tal:attributes="id string:a${repeat/item/number}"
         tal:define="response item/getContent">
      <h2 class="faqResponseElement">
        <tal:block  tal:content="response/title">ma question</tal:block>
      </h2>
      <div class="ddescription" tal:content="response/description">
        description
      </div>
      <p class="faqResponseElement">
        <span class="dlabel" i18n:translate="cpsdoc_faq_answer_label">Response: </span>
        <tal:block tal:replace="response/content" />
      </p>
    </div>
    <p class="faqResponseElement">
      <a tal:attributes="href string:${base_url}${proxy_url}#q${repeat/item/number}"
        i18n:translate="button_back">back</a>
    </p>
  </tal:block>


Can i render "reponse/content" like html ?
I want tal to format my  text  like a  html page. Is this possible?

 

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to