<?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: Problem with Advanced Search customization in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128166#M34770</link>
    <description>&lt;P&gt;This may sound silly, but why your&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;customContentModel&lt;/PRE&gt;
&lt;P&gt;doesn't have a prefix?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 15:20:23 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2023-09-11T15:20:23Z</dc:date>
    <item>
      <title>Problem with Advanced Search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128165#M34769</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to customize Advanced Search to adding "My Search" option. I changed share-config-custom.xml (see below). But my customization doesn't work. I added a new item to search menu, but i get error "&lt;SPAN&gt;Form definition could not be found&lt;/SPAN&gt;".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the definition from cm:folder, but it doesn't work. I use community edition 7.3 in Docker desktop.&lt;/P&gt;&lt;P&gt;Pls, do you see where is a problem?&lt;/P&gt;&lt;P&gt;Thanks, Martin&lt;/P&gt;&lt;PRE&gt;  &amp;lt;config evaluator="model-type" condition="customContentModel"&amp;gt;
      &amp;lt;forms&amp;gt;
         &amp;lt;form&amp;gt;
            &amp;lt;field-visibility&amp;gt;
               &amp;lt;show id="cm:name" /&amp;gt;
               &amp;lt;show id="cm:title" force="true" /&amp;gt;
               &amp;lt;show id="cm:description" force="true" /&amp;gt;
            &amp;lt;/field-visibility&amp;gt;
            &amp;lt;appearance&amp;gt;
               &amp;lt;field id="cm:name"&amp;gt;
                  &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" &amp;gt;
                     &amp;lt;control-param name="maxLength"&amp;gt;255&amp;lt;/control-param&amp;gt;
                  &amp;lt;/control&amp;gt;
               &amp;lt;/field&amp;gt;
               &amp;lt;field id="cm:title"&amp;gt;
                  &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
               &amp;lt;/field&amp;gt;
            &amp;lt;/appearance&amp;gt;
         &amp;lt;/form&amp;gt;
         &amp;lt;!-- Search form --&amp;gt;
         &amp;lt;form id="search"&amp;gt;
            &amp;lt;field-visibility&amp;gt;
               &amp;lt;show id="cm:name" /&amp;gt;
               &amp;lt;show id="cm:title" force="true" /&amp;gt;
               &amp;lt;show id="cm:description" force="true" /&amp;gt;
            &amp;lt;/field-visibility&amp;gt;
         &amp;lt;/form&amp;gt;
      &amp;lt;/forms&amp;gt;
  &amp;lt;/config&amp;gt;

  &amp;lt;config evaluator="string-compare" condition="AdvancedSearch" replace="true"&amp;gt;
  	&amp;lt;advanced-search&amp;gt;
  		&amp;lt;forms&amp;gt;
  			&amp;lt;!-- Standard out-of-the-box types --&amp;gt;
  			&amp;lt;form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content"&amp;gt;cm:content&amp;lt;/form&amp;gt;
  			&amp;lt;form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder"&amp;gt;cm:folder&amp;lt;/form&amp;gt;
  			
            &amp;lt;!-- Custom type --&amp;gt;
            &amp;lt;form labelId="custom" label="My Search" descriptionId="customContent" description="My search description"&amp;gt;customContentModel&amp;lt;/form&amp;gt;          
  		&amp;lt;/forms&amp;gt;
  	&amp;lt;/advanced-search&amp;gt;
  &amp;lt;/config&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:35:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128165#M34769</guid>
      <dc:creator>mbikl</dc:creator>
      <dc:date>2023-09-11T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Advanced Search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128166#M34770</link>
      <description>&lt;P&gt;This may sound silly, but why your&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;customContentModel&lt;/PRE&gt;
&lt;P&gt;doesn't have a prefix?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:20:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128166#M34770</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-09-11T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Advanced Search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128167#M34771</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to create new advanced search more than 10 day. I had a namespece prefix. If I use namespace prefix "myprefix:customContentModel" I get error "Namespace prefix &lt;STRONG&gt;myprefix&lt;/STRONG&gt; is not mapped to a namespace URI".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow.... What does is mean? Where is defined namespace URI?&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 12:35:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128167#M34771</guid>
      <dc:creator>mbikl</dc:creator>
      <dc:date>2023-09-13T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Advanced Search customization</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128168#M34772</link>
      <description>&lt;P&gt;Hi mbikl,&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;namespace prefix "myprefix:customContentModel" which you trying to add in your advsearch page custom form should be registered in your custom contentmodel also, then it'll not throwing this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step1: create you custom content model with having&amp;nbsp;myprefix&amp;nbsp; + customContentModel to registered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;namespaces&amp;gt;&lt;BR /&gt;&amp;lt;namespace uri="&lt;A href="http://cms.testproject.com/model/content/1.0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://cms.testproject.com/model/content/1.0&lt;/A&gt;" prefix="myprefix"/&amp;gt;&lt;BR /&gt;&amp;lt;/namespaces&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step2: Restart your ACS to deploy that custom content model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step3: Use this&amp;nbsp;custom&amp;nbsp;namespace prefix in your advsearch form. It should work. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simant&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 15:00:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-advanced-search-customization/m-p/128168#M34772</guid>
      <dc:creator>sim2487</dc:creator>
      <dc:date>2023-09-13T15:00:46Z</dc:date>
    </item>
  </channel>
</rss>

