<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Aikau custom page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288751#M241881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi, i have some problem with new aikau framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must import some file so I have created a page and into the page i inserted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-a picker that select a folder where import the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-a button that check some config file and split xml…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-a button to import the file (it is possible to import without check, the important is to select a folder where put the new file).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have create a base page, I added three div and in each div I added one region. In the first region I added the code for the picker but this solution not work :-(. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I import a region into the page, alfresco insert the script but he didn't refresce (draw to the screen) the picker, seem that alfresco does not compile the code into script tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the output of the page of the first div:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;div style="height:100px;background-color:red;" id="imp-select-folder-div"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;//&amp;amp;lt;![CDATA[&lt;BR /&gt;require(['surf/f1c5d90ba57a308c459f5e39ac094e07','dojo/domReady!'], function(Page) {&lt;BR /&gt; var p = new Page({services:["alfresco\/dialogs\/AlfDialogService", "alfresco\/services\/DocumentService", "alfresco\/services\/SiteService"],widgets:[{"name": "alfresco\/forms\/Form", "config": {"okButtonPublishTopic": "FORM_CONTENTS", "widgets": [{"name": "alfresco\/forms\/controls\/ContainerPicker", "config": {"name": "document", "label": "Choose a Folder"}}]}}],publishOnReady:[]&lt;BR /&gt;}, 'content');&lt;BR /&gt;});&lt;BR /&gt;//]]&amp;amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the code but i don't see the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created an aikau page and into the model of the page I include the picker and it work fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I ask how can create the page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-I must create the picker and push into the page all button?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-can I get the dom of the page (write html into ftl file) and with aikau insert the button where i want?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-how can handle the button event? I must create a wigets for all buttons and insert the code into js file that import into the dependency of the widget like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;….&lt;BR /&gt; &amp;lt;web-framework&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dojo-pages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;packages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;package name="example" location="js/example"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/packages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dojo-pages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/web-framework&amp;gt;&lt;BR /&gt;….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Mar 2016 12:05:18 GMT</pubDate>
    <dc:creator>tavvolley</dc:creator>
    <dc:date>2016-03-05T12:05:18Z</dc:date>
    <item>
      <title>Aikau custom page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288751#M241881</link>
      <description>hi, i have some problem with new aikau framework.I must import some file so I have created a page and into the page i inserted:-a picker that select a folder where import the file.-a button that check some config file and split xml…-a button to import the file (it is possible to import without check</description>
      <pubDate>Sat, 05 Mar 2016 12:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288751#M241881</guid>
      <dc:creator>tavvolley</dc:creator>
      <dc:date>2016-03-05T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau custom page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288752#M241882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would definitely recommend that you work your way through the &lt;A href="https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md" rel="nofollow noopener noreferrer"&gt;Aikau tutorial on GitHub&lt;/A&gt; as this will give you a better understanding of how you should go about building pages using Aikau.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you're just trying to provide an option to upload and then allow the user to select the location to upload to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a number of widgets and services available out of the box for this... the "&lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/FileUploadService.html" rel="nofollow noopener noreferrer"&gt;alfresco/services/FileUploadService&lt;/A&gt;" or "&lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/UploadService.html" rel="nofollow noopener noreferrer"&gt;alfresco/services/UploadService&lt;/A&gt;" is available to take care of your upload needs (I would recommend the latter).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/ContainerPicker.html" rel="nofollow noopener noreferrer"&gt;container picker&lt;/A&gt;&amp;nbsp;that can be used for selecting folders and a &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/AlfButton.html" rel="nofollow noopener noreferrer"&gt;button&lt;/A&gt; widget (among many other options) for launching actions. There is also a &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/FileSelect.html" rel="nofollow noopener noreferrer"&gt;file select&lt;/A&gt; form control for choosing files from your operating system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to write a custom service to tie this altogether, but essentially it sounds like what you want to do is to have a button that publishes a request to the &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/DialogService.html" rel="nofollow noopener noreferrer"&gt;DialogService&lt;/A&gt; to show a dialog form with&amp;nbsp;a container picker and a file select form controls... when that form is submitted it will want to publish a request to the FileUploadService to upload the selected file to the selected folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 10:26:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288752#M241882</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-15T10:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau custom page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288753#M241883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually forgot that we more or less already have an Aikau widget that does exactly what you want... you should check out the &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/UploadTarget.html" rel="nofollow noopener noreferrer"&gt;UploadTarget&lt;/A&gt; widget. It is used in one of our &lt;A href="https://github.com/Alfresco/Aikau/blob/d5805d38cb88696fd8b75b02206816fbc7a248c6/aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/dashlets/UploadDashlet.get.js" rel="nofollow noopener noreferrer"&gt;unit test pages&lt;/A&gt;. If you clone the &lt;A href="https://github.com/Alfresco/Aikau" rel="nofollow noopener noreferrer"&gt;Aikau repository&lt;/A&gt; and follow the &lt;A href="https://github.com/Alfresco/Aikau/wiki/Aikau%20Setup%20(Windows)" rel="nofollow noopener noreferrer"&gt;setup instructions&lt;/A&gt; you can test it out in the unit test application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 10:15:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288753#M241883</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-16T10:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau custom page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288754#M241884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI... I've written a &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2016/09/20/custom-uploads-with-aikau" rel="nofollow noopener noreferrer"&gt;blog post&lt;/A&gt; working through this use case as best I can from the description provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 09:21:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-custom-page/m-p/288754#M241884</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-20T09:21:21Z</dc:date>
    </item>
  </channel>
</rss>

