cancel
Showing results for 
Search instead for 
Did you mean: 

Preview SWF default zoom

zladuric
Champ on-the-rise
Champ on-the-rise
Hello,

We're using alfresco 3.0 and we would like to change the default behavior of the document details flash preview. By default, the previewer is opening previews in "Fit Page" zoom mode, and we would like to change this to "Fit Width".
I've been looking in share/components/preview javascript, and this is where I located just one thing related to it:
var so = new YAHOO.deconcept.SWFObject(Alfresco.constants.URL_CONTEXT + "/components/preview/WebPreviewer.swf", "WebPreviewer", "100%", "670", "9.0.45");

However, I can't see how to change this so the previewer would open in Fit Width or other modes.
Now, I guess I should go to source code for the previewer.swf itself, right?

Could somebody point me to the correct file at least where this could be set?

Thanks a lot in advance.
7 REPLIES 7

mycroes
Champ in-the-making
Champ in-the-making
Looking at the previewer source it doesn't seem like there's a parameter that can be used to set the default zoom style. However there might be a way to invoke this from javascript after creating the object, but I was not able to find it anywhere. However I'm no flash expert at all, so maybe someone else does know about a way to do this.
Regards,

Michael

dehfs
Champ in-the-making
Champ in-the-making
Have you gotten an answer?  I would be interested in any solutions you might have to recommend.

Thanks

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I would like to do the same… Preview with fit with… Has someone found how to do this ?

Thank you

zladuric
Champ on-the-rise
Champ on-the-rise
Hi all,

In case you guys are still wondering, I wanted to tell you that I managed to do this task. I had to locate and modify the flash previewer source to do it, if any of you still need it, I'll dig up where I changed it at and post here.

mihaim66
Champ in-the-making
Champ in-the-making
Hi all, I would need to do the same thing, set the default zoom to fit width. Is there any other way to do this beside to decompile the SWF and try to figure out where to change this?

If not, can you please give some reference on where to set this default value?

Thank you
Mihai

wraboch
Champ in-the-making
Champ in-the-making
Hi,
I have the same problem for a customer and because I have not found any detailed information, I documented my changes in my blog on http://blog.ingen.at/2014/01/alfresco-share-previewer-set-default.html

I hope that helps someone with the same problem in future.

Regards,
Walter

dave984
Champ in-the-making
Champ in-the-making
Hi wraboch, i've look at the post on your blog and i've tried to replicate the trick but it does not work on Alfresco 4.2.c…after replaced the WebPreview.swf no preview is displayed…maybe just something missing…have you tried on Alfresco 4.2.c??