AnsweredAssumed Answered

Javascript for Custom Action in Share

Question asked by joshijimit on Apr 18, 2011
Latest reply on Apr 19, 2011 by joshijimit
Hi,

I have just created custom actions in alfresco share by following below topic.

http://forums.alfresco.com/en/viewtopic.php?f=47&t=37518

I have updated below JS files to make it works as mentioned in the same topic.

\tomcat\weabpps\share\components\document-details\document-actions.js
\tomcat\webapps\share\js\documentlibrary-actions.js

My question here is, Is there any scope that I can put these files under \tomcat\shared folder? So that I can separate it from share.war and make it a extension js.

I think I need to change the below line in document-actions.get.head.ftl but what would be the URL if I placed my JS inder shared folder.

<@script type="text/javascript" src="${page.url.context}/res/components/document-details/document-actions.js"></@script>

Any suggestion on this front would be of grt help.

Thanks & regards,
Jimit

Outcomes