I would like to display the PDF stored into the file:content field directly in my tab, not the link to download it. How can I do that ?
Dear me,
In your tab designer, you can add a template fragment with the following parameters:
Add 2 fields
add the following properties
Look the following screenshot:
And I attached the following xhtml fragment to the widget:
<div xmlns:nxd="http://nuxeo.org/nxweb/document"> <embed src="#{nxd:fileUrl('downloadFile', field_0, widget.properties.file_property_name, field_1)}" max-width="600" height="600" width="100%"/> </div>