<?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 render Form for type with aspect in Share? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144539#M38359</link>
    <description>&lt;P&gt;If the node of type "cm:content" has "sc:webable" and "cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rojectsummary" aspect set, the form will include all the properties for node and types.&lt;/P&gt;
&lt;P&gt;If you want to create a new node and show a form with these properties, you can try an approach similar to &lt;A href="https://github.com/softwareloop/uploader-plus" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/softwareloop/uploader-plus&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 09:11:14 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2022-10-14T09:11:14Z</dc:date>
    <item>
      <title>How to render Form for type with aspect in Share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144536#M38356</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Using `&lt;STRONG&gt;/share/service/components/form&lt;/STRONG&gt;` web script we can render a form for a node or for a type. Is it posible to render a form for a type with aspects? If no, how would you implement it?&lt;/P&gt;&lt;P&gt;I can implement "AspectFormProcessor", but what next? How to connect it with the Alfresco Share?&lt;/P&gt;&lt;P&gt;It would be the best to specify properties in the request's argument and render a form with only those.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 16:23:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144536#M38356</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-10-13T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to render Form for type with aspect in Share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144537#M38357</link>
      <description>&lt;P&gt;You can render forms for aspects in Share. A good sample is available in&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#configuring-forms-for-custom-properties" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#configuring-forms-for-custom-properties&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;config evaluator="aspect" condition="sc:webable"&amp;gt;
    &amp;lt;forms&amp;gt;
        &amp;lt;form&amp;gt;
            &amp;lt;field-visibility&amp;gt;
                &amp;lt;show id="sc:published" /&amp;gt;
                &amp;lt;show id="sc:isActive" /&amp;gt;
            &amp;lt;/field-visibility&amp;gt;
            &amp;lt;appearance&amp;gt;                    
                &amp;lt;field id="sc:published" label-id="prop.sc_published" /&amp;gt;
                &amp;lt;field id="sc:isActive" label-id="prop.sc_isActive" /&amp;gt;
            &amp;lt;/appearance&amp;gt;
        &amp;lt;/form&amp;gt;
    &amp;lt;/forms&amp;gt;
&amp;lt;/config&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2022 07:16:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144537#M38357</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-10-14T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to render Form for type with aspect in Share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144538#M38358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the answer, I am very well aware of that configuration but I'm wondering how to render an HTML form based on i.e. type "cm:content" and aspects "sc:webable" and "&lt;SPAN&gt;cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rojectsummary&lt;/SPAN&gt;". So in that example, I want to render an HTML form containing a properties from the cm:content type and properties from both "sc:webable" and "cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rojectssummary" aspects. The simpliest solution I found so far it to create a dummy node containing that type and aspects and then call `&lt;STRONG&gt;/share/service/components/form&lt;/STRONG&gt;` web script with "node" itemKind.&lt;/P&gt;&lt;P&gt;But it seems to be a bit dirty solution.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:04:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144538#M38358</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-10-14T09:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to render Form for type with aspect in Share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144539#M38359</link>
      <description>&lt;P&gt;If the node of type "cm:content" has "sc:webable" and "cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rojectsummary" aspect set, the form will include all the properties for node and types.&lt;/P&gt;
&lt;P&gt;If you want to create a new node and show a form with these properties, you can try an approach similar to &lt;A href="https://github.com/softwareloop/uploader-plus" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/softwareloop/uploader-plus&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:11:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144539#M38359</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-10-14T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to render Form for type with aspect in Share?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144540#M38360</link>
      <description>&lt;P&gt;It is all about a new node. In the uploader-plus addon, only type can be selected (because there is no such think as PropertyFormProcessor or AspectFormProcessor, there is only NodeFormProcessor and TypeFormProcessor). I'm trying to add a functionality to select also an aspect or a property.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;type=cm:content and aspects=[my:test, my:test2]&lt;/P&gt;&lt;PRE&gt;GET /share/service/components/form?type=cm:content&amp;amp;aspects=[my:test, my:test2]&lt;/PRE&gt;&lt;P&gt;Output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;rendered HTML form&amp;gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;form&amp;gt;
&amp;lt;input type="text" name="prop_cm_name"&amp;gt;
&amp;lt;input type="text" name="prop_cm_title"&amp;gt;
&amp;lt;input type="text" name="prop_cm_description"&amp;gt;
...
&amp;lt;input type="text" name="prop_my_test_prop1"&amp;gt;
&amp;lt;input type="text" name="prop_my_test_prop2"&amp;gt;
&amp;lt;input type="text" name="prop_my_test2_prop1"&amp;gt;
&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;P&gt;I would like to use existing Share's type and aspect form configuration.&lt;/P&gt;&lt;P&gt;I can of course write my own Share web script, I'm just wondering if there is an easier way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-render-form-for-type-with-aspect-in-share/m-p/144540#M38360</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2022-10-14T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

