Ignore:
Timestamp:
15 Dec 2014, 10:48:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Add HTMLDocumentDisplayContentPage which renders only the content part of HTMLDocuments.

Include <a> element on display pages for copy and paste.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/htmldocumentpage.pt

    r12227 r12242  
    2424    <tr>
    2525      <td i18n:translate="" class="fieldname">
    26         Rendered Content:
     26        Content:
    2727      </td>
    2828      <td>
     
    3030      </td>
    3131    </tr>
     32    <tr tal:condition="python: getattr(context, 'state', None) == 'published'">
     33      <td i18n:translate="" class="fieldname">
     34        HTML Element:
     35      </td>
     36      <td>
     37        &lt;a href=&quot;
     38        <span tal:replace="python: view.url(context, 'display')"></span>
     39        &quot;&gt;<span tal:replace="context/title">FILENAME</span>&lt;/a&gt;
     40      </td>
     41    </tr>
    3242  </tbody>
    3343</table>
Note: See TracChangeset for help on using the changeset viewer.