12-07-2017 10:41 AM
Hello,
I have a aikau page that shows only one button called upload when I got to http://localhost:8080/share/page/dp/ws/myfileupload url. I want to add this aikau widget to my custom page in share site. I have below configurations but I am not seeing aikau page button when I go to my custom page.
I have below code in my custom page.
\tomcat\shared\classes\alfresco\web-extension\site-data\template-instances\dell.xml
<component>
<region-id>myfileupload</region-id>
<url>/dp/ws/myfileupload</url>
</component>
tomcat\shared\classes\alfresco\web-extension\templates\org\alfresco\dell.ftl
...
<@region id="myfileupload" scope="template"/>
....
My Aikau page files are as below.
1. file-upload-page.get.html.ftl
<@processJsonModel group="share"/>
3. file-upload-page.get.desc.xml
<webscript>
<shortname>File Upload Page</shortname>
<description>File upload page definition</description>
<family>Share</family>
<url>/myfileupload</url>
</webscript>
2. file-upload-page.get.js
Thanks in advance
12-08-2017 03:15 AM
You cannot include a web script using the /dp/ws/ URL prefix - that prefix is used only to address a web script as a page. The URL to use in your case is the URL defined in the *.get.desc.xml of the web script that is supposed to render your component, so only /myfileupload
12-08-2017 09:42 AM
Thanks for your reply!
I put the /myfileupload url in the dell.xml file but then also the page is blank only.
When I put a logger in the file-upload-page.get.js file it prints the log.
Explore our Alfresco products with the links below. Use labels to filter content by product module.