11-01-2016 06:12 PM
I have a local virtual machine with windows 7 and Alfresco share, there I have successfully developed and register a lot of webscipts just by creating them under datadictionary->Webscript extensions and going to the service/index webpage. But when I do the same in Alfresco under Centos (a kind of linux for Intel machines) Alfresco don't even notice them, it doesn't issues any errors. Have tried by copying the files to the folder structure under tomcat/share.../extensions/template but with no success.
Any suggestions?
Thank you
11-02-2016 01:57 AM
Hi Jose,
As far as I know, you are creating repo web-script and accessing it through share URL. Try to access it from this http://alfrescobeta.globalhitss.com/alfresco/service/index . Or if you want to access it through URL you mentioned, create presentation webscript in \tomcat\shared\classes\alfresco\web-extension\site-webscripts.
Thanks
Kalpesh
11-01-2016 06:28 PM
11-01-2016 06:58 PM
I'm attaching an image of the hola.get.desc.xml descriptor created under data dictionary->web scripts extension->samples folder. There is also a corresponding hola.get.html.ftl file, containing the lines:
<html>
<head>
<title>Ejemplo de Web Script</title>
</head>
<body>
<table>
<tr>
<td><img src="${url.context}/images/logo/AlfrescoLogo32.png"
alt="Alfresco" /></td>
<td><nobr>Web Script de Subida</nobr></td>
</tr>
<tr><td>Alfresco ${server.edition} v${server.version}</td></tr>
<tr><td> ${url.service}</td></tr>
</table>
<p>
</body>
</html>
I go to http://alfrescobeta.globalhitss.com/share/page/index
and hit the Refresh Web Scripts:
I end up with the same 385 web scripts:
I didn't get any errors
11-01-2016 10:16 PM
You should place them under following folder instead of .../extensions/template
alfresco/templates/webscripts
alfresco/extension/templates/webscripts
11-02-2016 01:57 AM
Hi Jose,
As far as I know, you are creating repo web-script and accessing it through share URL. Try to access it from this http://alfrescobeta.globalhitss.com/alfresco/service/index . Or if you want to access it through URL you mentioned, create presentation webscript in \tomcat\shared\classes\alfresco\web-extension\site-webscripts.
Thanks
Kalpesh
11-03-2016 03:15 PM
Thank you Kalpesh. I placed the files there and I'm able to see them now. If it is not to ambicious I would really like to know why Alfresco couldn't register them by creating them through data dictionary->Web scripts extension.
11-05-2016 12:53 AM
You'r Welcome,
This is because "data dictionary/webscripts extensions" are the contents in repository. Repository contains files and customizations which are common to all the platforms accessing repository. Share is just a one of the clients through which we can access repository. So the customizations or files related to presentation cannot be kept in Repository(it means, in data dictionary/webscripts extensions).
Thanks,
Kalpesh
12-13-2016 02:41 PM
After many trials and errors, what worked indeed was the following:
1) Install node.js in the Centos server
2) Deposit the webscript files in the following folder:
tomcat/shared/classes/alfresco/extension/templates/webscripts
it might be needed to create the folders templates and templates/webscripts
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.