cancel
Showing results for 
Search instead for 
Did you mean: 

Add Aikau widget to the custom site page

signjoy
Confirmed Champ
Confirmed Champ

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

2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator

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

signjoy
Confirmed Champ
Confirmed Champ

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.