<?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 page and pubSub help in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aikau-page-and-pubsub-help/m-p/282227#M235357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am developing an aikau page - with a number of widgets, including a document list and document preview.&amp;nbsp; All pretty successfully thanks to Dave Draper's great tutorial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final piece of the page is a widget that displays content from Alfresco.&amp;nbsp; This I can do by "calling" KnowledgeWidget.js, which gets the html content I want to display and uses domConstruct to build the widget content.&amp;nbsp; At the moment the path to the Alfresco content is hard coded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I want to do is call my aikau page with a parameter&amp;nbsp; ie. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8081/share/page/hdp/ws/knowledge?page=Policy" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8081/share/page/hdp/ws/knowledge?page=Policy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and pass this parameter to my KnowledgeWidget.js&lt;/P&gt;&lt;P&gt;page = page.url.args.page;&amp;nbsp; gets me the parameter.&lt;/P&gt;&lt;P&gt;And I believe I need to use pubSub to get the parameter to the widget - but I can't figure out how to do it..&amp;nbsp; Or if I can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed Dave's tutorials, particularly the DataLists with the pubSub and the basic sub/sub in Ole's examples as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice will be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Oct 2016 04:32:19 GMT</pubDate>
    <dc:creator>jonno70</dc:creator>
    <dc:date>2016-10-29T04:32:19Z</dc:date>
    <item>
      <title>aikau page and pubSub help</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-page-and-pubsub-help/m-p/282227#M235357</link>
      <description>HiI am developing an aikau page - with a number of widgets, including a document list and document preview.&amp;nbsp; All pretty successfully thanks to Dave Draper's great tutorial.The final piece of the page is a widget that displays content from Alfresco.&amp;nbsp; This I can do by "calling" KnowledgeWidget.js, whi</description>
      <pubDate>Sat, 29 Oct 2016 04:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-page-and-pubsub-help/m-p/282227#M235357</guid>
      <dc:creator>jonno70</dc:creator>
      <dc:date>2016-10-29T04:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: aikau page and pubSub help</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-page-and-pubsub-help/m-p/282228#M235358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, thanks for the kind words about the tutorial, etc - it's very much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're getting the request parameter in the JavaScript controller of the WebScript then the best approach would be to create a configuration attribute on your custom widget and set it in the controller (rather than trying to do it on the client side).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do this quite a bit in the unit test application in order to change the way that the test page behaves. Please review the examples below as to how this can be done:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/Alfresco/Aikau/blob/4b3714b846fc34ac21ab4c661de7fce8c621d276/aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/search/SearchFilmStripView.get.js" rel="nofollow noopener noreferrer"&gt;Example1&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Alfresco/Aikau/blob/4b3714b846fc34ac21ab4c661de7fce8c621d276/aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/header/SearchBox.get.js" rel="nofollow noopener noreferrer"&gt;Example2&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 10:08:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-page-and-pubsub-help/m-p/282228#M235358</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-11-11T10:08:36Z</dc:date>
    </item>
  </channel>
</rss>

