This question about Using an extension: Asked

displaying PDF using mediaplugin

I wanted to inline pdfs in a page using %media tag. Though it works the size of container picked up is default i.e. 320 x 180

Since I use many other media, cannot change the default setting. Tried overwriting the settings using width and height parameters but doesn't work. I entered
%MEDIA{%ATTACHMENTLIST{ format = "$fileUrl" }%
width = "100%"
height = "100%"

to get the output as
<object data=" [[http://admin-95c67ac0c/foswiki/pub/Sandbox/DPN181/24282006439372568.pdf][http://admin-95c67ac0c/foswiki/pub/Sandbox/DPN181/24282006439372568.pdf]] width = "100%" height = "100%"" height="180" type="" width="320">

Once I remove the height and width tags from above the same syntax gives a plugin in container with the correct attachment inside but of size 320 * 180 (default mediaplugin settings)

Perhaps was a syntax error corrected to
%MEDIA{"%ATTACHMENTLIST{ format = "$fileUrl" }%"
width = "100%"
height = "100%"

Now I am getting correct view with controls in IE 6, View but No controls in Chrome 11.0.696.65, No view or controls in Firefox 4.0.1

-- HarshadDivekar - 17 May 2011

QuestionForm edit

Subject Using an extension
Extension MediaPlugin
Version Foswiki 1.1.2
Status Asked
Topic revision: r2 - 17 May 2011, HarshadDivekar - This page was cached on 16 Jan 2020 - 15:42.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy