cancel
Showing results for 
Search instead for 
Did you mean: 

can google docs aspect be added to 2007 documents?

ajbarnesy
Champ in-the-making
Champ in-the-making
I want to be able to use GoogleDocs to edit my documents (word,excel) but the aspect is only shown for mimetypes word doc, word excel, word powerpoint. and not 2007 documents, althought if i just change the mimetype its works, is there a way to allow the googledocs aspect to be added to 2007 documents?

I dont see why it cant be possible, if i change the mimetype to just 'word doc' and add the googledocs aspect then change the mimetype back to 2007 documents the aspect stays there and i can edit it, this will be a hassle to other users. i want to make this as simple as possible without too much playing around with setting.

can someone help?
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

short answer: Yes:
The restriction for the aspect based on mimetype is rather hard coded into the aspects.js. The list of mimetypes in the _googleDocsFilter function may simply be expanded to cover the 2007 types if GoogleDocs properly supports these formats as well (I don't know if Alfresco tested it and found some problems that may have lead them to omit those).

Regards
Axel

ajbarnesy
Champ in-the-making
Champ in-the-making
The list of mimetypes in the _googleDocsFilter function may simply be expanded to cover the 2007 types

Do you happen to know the docx, xlsx and pptx mimetype names?
ive tried these three but it doesnt seem to be working:

"application/vnd.openxmlformats-officedocument.wordprocessingml.document":true,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":true,
"application/vnd.openxmlformats-officedocument.presentationml.presentation":true

afaust
Legendary Innovator
Legendary Innovator
Those are the ones. Keep in mind that there are two file variants - the standard .js file and a -min.js as a compressed variant (improves performance). The aspect.js is merged and compressed at build time into the documentlibrary-actions-min.js. Both should be adapted to ensure this works - one is served to clients in debug mode while the other (-min.js) is used in production environments.

Regards
Axel

ajbarnesy
Champ in-the-making
Champ in-the-making
Ive updated both files and restarted the server, but the docx, xlsx files still arent showing the googledocs editable aspects. I must be missing something, Is there anything else i should be editing?

Also is it possible to automatically add aspects to a file when its uploaded?