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