<?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: How to extend Create Library dialog? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38114#M16073</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The goal is to retrieve the value in repository(sites.post.json.js). With Aikau it was possible with&amp;nbsp;ph:customTemplateProperty.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;siteService&lt;/SPAN&gt;.&lt;SPAN&gt;config&lt;/SPAN&gt;.&lt;SPAN&gt;widgetsForCreateSiteDialogOverrides &lt;/SPAN&gt;= [&lt;BR /&gt;  {&lt;BR /&gt;    &lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"alfresco/forms/controls/Select"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;targetPosition&lt;/SPAN&gt;: &lt;SPAN&gt;"START"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;config&lt;/SPAN&gt;: {&lt;BR /&gt;      &lt;SPAN&gt;fieldId&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"TestTitle"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"&lt;STRONG&gt;ph:customTemplateProperty&lt;/STRONG&gt;"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;standardTemplate&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;optionsConfig&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;fixed&lt;/SPAN&gt;: &lt;SPAN&gt;options&lt;BR /&gt;&lt;/SPAN&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;];&lt;/PRE&gt;&lt;P&gt;I've gotten some advice on Gitter which I'm looking into now. If I have understood correctly I need to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make my own&amp;nbsp;&lt;SPAN&gt;LibraryDialogComponent to add the extra field I want.&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-ng2-components/tree/6331979baa1ab5e37f62da466abb2a2074bbebfe/lib/content-services/src/lib/dialogs/library" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-ng2-components/tree/6331979baa1ab5e37f62da466abb2a2074bbebfe/lib/content-services/src/lib/dialogs/library&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Make my own custom Action + Effect that does what CREATE_LIBRARY does + fetching values for my droplist from the repository.(Replacing the existing action)&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-content-app/blob/development/src/assets/app.extensions.json#L97" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-content-app/blob/development/src/assets/app.extensions.json#L97&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Lastly, somehow supply the selected value in&amp;nbsp;&lt;STRONG&gt;ph:customTemplateProperty&lt;/STRONG&gt; in the request to sites.post.json.js&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 27 Feb 2020 08:57:07 GMT</pubDate>
    <dc:creator>phivuu-2</dc:creator>
    <dc:date>2020-02-27T08:57:07Z</dc:date>
    <item>
      <title>How to extend Create Library dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38112#M16071</link>
      <description>&lt;P&gt;I want to add a dropdown list to the existing dialog where the value is forwarded like in Aikau. I don't know where to begin.&amp;nbsp; I've taken a look at this&amp;nbsp;&lt;A href="https://www.alfresco.com/abn/adf/docs/content-services/dialogs/library.dialog/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/content-services/dialogs/library.dialog/&lt;/A&gt; and looked for "adf-library-dialog".&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;siteService&lt;/SPAN&gt;.&lt;SPAN&gt;config&lt;/SPAN&gt;.&lt;SPAN&gt;widgetsForCreateSiteDialogOverrides &lt;/SPAN&gt;= [&lt;BR /&gt;  {&lt;BR /&gt;    &lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"alfresco/forms/controls/Select"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;targetPosition&lt;/SPAN&gt;: &lt;SPAN&gt;"START"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;config&lt;/SPAN&gt;: {&lt;BR /&gt;      &lt;SPAN&gt;fieldId&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"TestTitle"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"ph:customTemplateProperty"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;standardTemplate&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;optionsConfig&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;fixed&lt;/SPAN&gt;: &lt;SPAN&gt;options&lt;BR /&gt;&lt;/SPAN&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;];&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 15:57:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38112#M16071</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2020-02-25T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend Create Library dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38113#M16072</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16143"&gt;@phivuu-2&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;What do you mean with "&lt;SPAN&gt;the value is forwarded like in Aikau"?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Are you looking to get one of the values from an external source?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which is your goal?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 17:07:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38113#M16072</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2020-02-26T17:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend Create Library dialog?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38114#M16073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The goal is to retrieve the value in repository(sites.post.json.js). With Aikau it was possible with&amp;nbsp;ph:customTemplateProperty.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;siteService&lt;/SPAN&gt;.&lt;SPAN&gt;config&lt;/SPAN&gt;.&lt;SPAN&gt;widgetsForCreateSiteDialogOverrides &lt;/SPAN&gt;= [&lt;BR /&gt;  {&lt;BR /&gt;    &lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"alfresco/forms/controls/Select"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;targetPosition&lt;/SPAN&gt;: &lt;SPAN&gt;"START"&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;config&lt;/SPAN&gt;: {&lt;BR /&gt;      &lt;SPAN&gt;fieldId&lt;/SPAN&gt;: &lt;SPAN&gt;"SELECT_PROJECT_TEMPLATE"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;label&lt;/SPAN&gt;: &lt;SPAN&gt;"TestTitle"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;name&lt;/SPAN&gt;: &lt;SPAN&gt;"&lt;STRONG&gt;ph:customTemplateProperty&lt;/STRONG&gt;"&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;value&lt;/SPAN&gt;: &lt;SPAN&gt;standardTemplate&lt;/SPAN&gt;,&lt;BR /&gt;      &lt;SPAN&gt;optionsConfig&lt;/SPAN&gt;: {&lt;BR /&gt;        &lt;SPAN&gt;fixed&lt;/SPAN&gt;: &lt;SPAN&gt;options&lt;BR /&gt;&lt;/SPAN&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;];&lt;/PRE&gt;&lt;P&gt;I've gotten some advice on Gitter which I'm looking into now. If I have understood correctly I need to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make my own&amp;nbsp;&lt;SPAN&gt;LibraryDialogComponent to add the extra field I want.&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-ng2-components/tree/6331979baa1ab5e37f62da466abb2a2074bbebfe/lib/content-services/src/lib/dialogs/library" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-ng2-components/tree/6331979baa1ab5e37f62da466abb2a2074bbebfe/lib/content-services/src/lib/dialogs/library&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Make my own custom Action + Effect that does what CREATE_LIBRARY does + fetching values for my droplist from the repository.(Replacing the existing action)&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-content-app/blob/development/src/assets/app.extensions.json#L97" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-content-app/blob/development/src/assets/app.extensions.json#L97&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Lastly, somehow supply the selected value in&amp;nbsp;&lt;STRONG&gt;ph:customTemplateProperty&lt;/STRONG&gt; in the request to sites.post.json.js&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 27 Feb 2020 08:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-create-library-dialog/m-p/38114#M16073</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2020-02-27T08:57:07Z</dc:date>
    </item>
  </channel>
</rss>

