(Maybe this post is better fitted in the Javascript API forum, but that subforum was locked for me)
I have changed the CIFS javascript action __showDetails to link to Share instead. And that was a simple change (I can post how once it is complete).
But I had to hard code the share server name, port and context. I want this be configurable, or read from the setting in alfresco-global.properties (share.host, share.port etc).
I found the projects/repository/source/java/org/alfresco/repo/jscript/ScriptUrls.java, and assumed this could be accessed in javascript. But there seem to be no base object for this. Looking at org.alfresco.repo.processor.ScriptServiceImpl.java, it looks like there should be a base object "urls" for this, but it is not available i a desktop action javascript. Also tested "urls" in a webscript, and it didn't work there either.
So how can I get the config value for Share hostname, port and context?