<?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 Re: Need a Aikau form control Site Picker, but filtered for the &amp;quot;site preset&amp;quot; property in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137850#M36983</link>
    <description>&lt;P&gt;Ty again, i have already do that on the service file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/u/1/folders/1MVl6w-et7C9GLxoNE90qrkAIVjH0lWrP" target="_blank" rel="noopener nofollow noreferrer"&gt;https://drive.google.com/drive/u/1/folders/1MVl6w-et7C9GLxoNE90qrkAIVjH0lWrP&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;this.alfSubscribe("ALF_GET_SITES_BY_SITE_PRESET", lang.hitch(this, this.getSitesBySitePreset));&lt;/PRE&gt;&lt;P&gt;it's must be something else i'm not seeing or some dojo config i screwed up.&lt;/P&gt;&lt;P&gt;Like i said i'm willing to pay for a use case example on github, because I admit I'm completely lost.&lt;/P&gt;&lt;P&gt;If it helps you in your answers I am trying to add the following customizations to your "site-hierarchy" addon used as a starting point:&lt;/P&gt;&lt;P&gt;A site selector limited to sites of a specific type.&lt;/P&gt;&lt;P&gt;Show or hide elements of the site creation or display form depending on which value has been selected in the "type site" dropdown.&lt;/P&gt;&lt;P&gt;Ty for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 11:04:54 GMT</pubDate>
    <dc:creator>AlfrescoZZZ</dc:creator>
    <dc:date>2021-06-23T11:04:54Z</dc:date>
    <item>
      <title>Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137846#M36979</link>
      <description>&lt;P&gt;Hi all, I need help customizing the default SitePicker.js of the Aikau library to show only the choice only to sites with a specific "site preset".&lt;/P&gt;&lt;P&gt;The process is i select a site type from the standard "Create Site" dialog:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10947_SiteServiceCustomization1" style="width: 396px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1072iFC1B606B44E39093/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When select the "Custom Preset" i show my custom form dialog:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="site%20hierarchy%20-%20create%20site" style="width: 309px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1074i8C0F80B8F465CF80/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now i click on the button "Parent Site" a classical "SitePicker" form control of Aikau, but i need to show only site with a specific "site preset".&lt;/P&gt;&lt;P&gt;I based my example on the "site-hierarchy addon" :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Acosix/alfresco-site-hierarchy/blob/master/share/src/main/site-webscripts/de/acosix/acosix-site-hierarchy/site-management-customisations-52/share/header/share-header.get.js#L188" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/Acosix/alfresco-site-hierarchy/blob/master/share/src/main/site-webscripts/de/acosix/acosix-site-hierarchy/site-management-customisations-52/share/header/share-header.get.js#L188&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i need to make a customized version of the :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/forms/controls/SitePicker.js" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/forms/controls/SitePicker.js&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For filter by "site preset".&lt;/P&gt;&lt;P&gt;Can anyone help with this or link me to some similar example ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 09:56:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137846#M36979</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2021-06-18T09:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137847#M36980</link>
      <description>&lt;P&gt;That's really not trivial. You would have to&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a customisation of the alfresco/services/SiteService which provides a pubSub topic via which sites can be queried / loaded using the site preset - by default, it only supports all sites, favorite or recent sites&lt;/LI&gt;
&lt;LI&gt;Create a customisation of alfresco/pickers/SitePicker which includes a section to load sites like the "&lt;A href="https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/pickers/SitePicker.js#L211" target="_self" rel="nofollow noopener noreferrer"&gt;allSites&lt;/A&gt;" option but with a publish payload to specify the preset to the customised SiteService&lt;/LI&gt;
&lt;LI&gt;Create a customisation of alfresco/forms/controls/SitePicker which uses your customised, non-form SitePicker &lt;A href="https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/forms/controls/SitePicker.js#L153" target="_self" rel="nofollow noopener noreferrer"&gt;instead of the default&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Use your customised form SitePicker in the Create Site dialog&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Note: I am the original author of the site hierarchy addon&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 09:32:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137847#M36980</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-06-21T09:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137848#M36981</link>
      <description>&lt;P&gt;Hi afaust, It must be me who don't know aikau well yet, but I still can't get what I want.&lt;/P&gt;&lt;P&gt;Here main resource file structure:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Immagine 1.png" style="width: 177px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1075i2470F0E54A42E039/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here the attachment of the files:&amp;nbsp; &lt;A href="https://drive.google.com/drive/folders/1WEm73VpeZBq98kcAbDc83LAEPN1vIJnX?usp=sharing" target="_blank" rel="noopener nofollow noreferrer"&gt;https://drive.google.com/drive/folders/1WEm73VpeZBq98kcAbDc83LAEPN1vIJnX?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm lost on the 3rd point of the list:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Create a customisation of alfresco/forms/controls/SitePicker which uses your customised, non-form SitePicker &lt;A href="https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/forms/controls/SitePicker.js#L153" target="_self" rel="nofollow noopener noreferrer"&gt;instead of the default&lt;/A&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i don't get how can i connect the code i made on the "&lt;STRONG&gt; alfresco/forms/controls/SitePresetPicker&lt;/STRONG&gt;":&lt;/P&gt;&lt;PRE&gt;{
                     name: "alfresco/menus/AlfMenuBarItem",
                     config: {
                        label: "picker.allSites.label",
                        publishTopic: "ALF_ADD_PICKER",
                        publishPayload: {
                           currentPickerDepth: 0,
                           pickerLabel: "SitesPreset",
                           picker: [
                              {
                                 name: "alfresco/lists/AlfSortablePaginatedList",
                                 config: {
                                    noDataMessage: "sitePicker.list.noSitesFound",
                                    dataFailureMessage: "sitePicker.list.errorLoadingSites",
                                    itemsProperty: "",
                                    loadDataPublishTopic: "ALF_GET_SITES_BY_SITE_PRESET",
                                    waitForPageWidgets: false,
                                    widgets: [sitesView]
                                 }
                              }
                           ]
                        }
                     }
                  }&lt;/PRE&gt;&lt;P&gt;with method i made on &lt;STRONG&gt;"alfresco/services/SitePresetService"&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;      getSitesBySitePreset: function alfresco_services_SitePresetService__getSites(payload) {
         // TODO: Clean this up. Choose on or other as the Aikau standard.
         var alfResponseTopic = payload.alfResponseTopic || payload.responseTopic;
         var config = {
            url: AlfConstants.PROXY_URI + "api/sites", // I'll do something here eventually
            method: "GET",
            alfTopic: alfResponseTopic
         };
         this.serviceXhr(config);
      },&lt;/PRE&gt;&lt;P&gt;for clarification here the code of my share custom configuration.&lt;/P&gt;&lt;PRE&gt;                &amp;lt;config evaluator="string-compare" condition="WebFramework" replace="false"&amp;gt;
                    &amp;lt;web-framework&amp;gt;
                        &amp;lt;dojo-pages&amp;gt;
                            &amp;lt;packages&amp;gt;
                                &amp;lt;package name="sitepresetservice" location="resources/service-site-hierarchy/aikau/alfresco/services/SitePresetService.js"/&amp;gt;
                                &amp;lt;package name="sitepresetpicker" location="resources/service-site-hierarchy/aikau/alfresco/pickers/SitePresetPicker.js"/&amp;gt;
                                &amp;lt;package name="sitepresetformcontrolpicker" location="resources/service-site-hierarchy/aikau/alfresco/forms/controls/SitePresetPicker.js"/&amp;gt;
                            &amp;lt;/packages&amp;gt;
                        &amp;lt;/dojo-pages&amp;gt;
                    &amp;lt;/web-framework&amp;gt;
                &amp;lt;/config&amp;gt;&lt;/PRE&gt;&lt;P&gt;Sorry for the inconvenience, but it is something that I have to solve at all costs. I'm willing ot pay a small bounty for this.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 16:39:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137848#M36981</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2021-06-21T16:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137849#M36982</link>
      <description>&lt;P&gt;In your site service you must have mapped the new "getSitesBySitePreset" function to a pubsub topic, similar to &lt;A href="https://github.com/Alfresco/Aikau/blob/develop/aikau/src/main/resources/alfresco/services/SiteService.js#L239" target="_self" rel="nofollow noopener noreferrer"&gt;how all the default functions are mapped/registered&lt;/A&gt;. That topic is the connection - a widget publishes to that topic to trigger the request, and the site service actually publishes to a similar response topic (original topic with an added suffix) to send back the results (handled transparently by "serviceXhr" in your case)&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 12:49:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137849#M36982</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-06-22T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137850#M36983</link>
      <description>&lt;P&gt;Ty again, i have already do that on the service file:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/u/1/folders/1MVl6w-et7C9GLxoNE90qrkAIVjH0lWrP" target="_blank" rel="noopener nofollow noreferrer"&gt;https://drive.google.com/drive/u/1/folders/1MVl6w-et7C9GLxoNE90qrkAIVjH0lWrP&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;this.alfSubscribe("ALF_GET_SITES_BY_SITE_PRESET", lang.hitch(this, this.getSitesBySitePreset));&lt;/PRE&gt;&lt;P&gt;it's must be something else i'm not seeing or some dojo config i screwed up.&lt;/P&gt;&lt;P&gt;Like i said i'm willing to pay for a use case example on github, because I admit I'm completely lost.&lt;/P&gt;&lt;P&gt;If it helps you in your answers I am trying to add the following customizations to your "site-hierarchy" addon used as a starting point:&lt;/P&gt;&lt;P&gt;A site selector limited to sites of a specific type.&lt;/P&gt;&lt;P&gt;Show or hide elements of the site creation or display form depending on which value has been selected in the "type site" dropdown.&lt;/P&gt;&lt;P&gt;Ty for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 11:04:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137850#M36983</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2021-06-23T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Aikau form control Site Picker, but filtered for the "site preset" property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137851#M36984</link>
      <description>&lt;P&gt;Ok maybe i find the problem i need to make a override of the site service:&lt;/P&gt;&lt;PRE&gt;var siteService = widgetUtils.findObject(model.jsonModel, "id", "SITE_SERVICE");&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pl-kos"&gt;so on the file "share-header.get.js" i add this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="t m0 x13 h2e y111 ff8 fs5 fc1 sc1 ls0 ws0"&gt;&lt;PRE&gt;//Change SiteService to Customized Module
widgetUtils.findObject(model.jsonModel, "id", "SITE_SERVICE").name = "alfresco/services/SitePresetService”;&lt;/PRE&gt;make sense ?&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jun 2021 17:11:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-a-aikau-form-control-site-picker-but-filtered-for-the-quot/m-p/137851#M36984</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2021-06-23T17:11:15Z</dc:date>
    </item>
  </channel>
</rss>

