preview doc in a <iframe>, as <object> doesn't work(?)
This commit is contained in:
parent
0518a5c7ec
commit
b8a023b840
|
@ -1,13 +1,13 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
||||
tal:omit-tag="">
|
||||
<object tal:condition="view/href"
|
||||
tal:attributes="href view/href;
|
||||
<iframe tal:condition="view/href"
|
||||
tal:attributes="src view/href;
|
||||
width view/width;
|
||||
height view/height"
|
||||
type="application/pdf" width="200px" height="100px">
|
||||
<p>Pas de lecteur PDF intégré, vous pouvez ouvrir le fichier
|
||||
en suivant ce lien : <a tal:attributes="href view/href"
|
||||
tal:content="view/filename">plop.pdf</a>.</p>
|
||||
</object>
|
||||
</iframe>
|
||||
</html>
|
||||
|
|
Reference in New Issue