cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the Flash previewer from Document Details

bengrah
Champ on-the-rise
Champ on-the-rise
Hi all

Is there any way that we can remove the flash previewer from rendering on the Document Details screen? What we've been noticing is that it does slow down rendering of the Document Details screen considerably, particularly in IE7 which is what we're using at the moment.

I've been having a poke around Share but I can't seem to find the template or the JS file that takes care of this. Any help on this would be greatly appreciated

Cheers,
bengrah
2 REPLIES 2

michaelc
Champ on-the-rise
Champ on-the-rise
I think you can remove in
shared\classes\alfresco\web-extension\templates\org\alfresco\document-details.ftl

            <#if (config.scoped['DocumentDetails']['document-details'].getChildValue('display-web-preview') == "true")>
            <@region id=doclibType + "web-preview" scope="template" protected=true />
            </#if>

just happen to be in that module at this moment

bengrah
Champ on-the-rise
Champ on-the-rise
Hi michaelc

Thanks for your suggestion. I found that removing it totally from the ftl caused more problems than it solved. So I went into web-preview.js and commented out the line "so.write(this.widgets.realSwfDivEl.get("id"));", this stops the previewer from loading.

Then I modified the CSS so that real estate of the screen isn't being taken up quite so much, then modified some properties of web-preview so that the text fits with the new context of not having a previewer.

I know you can remove the previewer by using share-config, but it still loads up space for the previewer so it doesn't "totally" remove it.

Thanks for your help!