<?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: Share ignores custom form extensions and replace=&amp;quot;true&amp;quot; for cm:person layouts (userid in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498700#M40838</link>
    <description>&lt;P&gt;Hello jesusmarmol, I´ll try to override the widget, thank you!&lt;BR /&gt;Arturo&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 01:49:25 GMT</pubDate>
    <dc:creator>AX</dc:creator>
    <dc:date>2026-06-05T01:49:25Z</dc:date>
    <item>
      <title>Share ignores custom form extensions and replace="true" for cm:person layouts (userid &amp; profile form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498653#M40833</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;We have successfully extended the repository user model (cm:person) by injecting two custom aspects via a repository-side content model:&lt;/P&gt;&lt;P&gt;eng:datosAsociado (contains eng:rolAsociado as d:string)&lt;BR /&gt;eng:datosCumpleanos (contains eng:fechaNacimiento as d:date)&lt;/P&gt;&lt;P&gt;This backend implementation has been fully tested, and data is persisting correctly via the Repository JavaScript API and REST API. Now, we want to expose these properties within Alfresco Share UI so administrators can view or update them when creating or editing a user, and users can see them in their own profiles.&lt;/P&gt;&lt;P&gt;Following the advanced inheritance notes outlined in Will Abson's article Adding Custom Aspect Support in Alfresco Share, we added the following configurations to our share-config-custom.xml inside shared/classes/alfresco/web-extension/ to override the standard user forms using replace="true":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;config evaluator="string-compare" condition="userid" replace="true"&amp;gt;
   &amp;lt;forms&amp;gt;
      &amp;lt;form&amp;gt;
         &amp;lt;field-visibility&amp;gt;
            &amp;lt;show id="cm:userName" /&amp;gt;
            &amp;lt;show id="cm:firstName" /&amp;gt;
            &amp;lt;show id="cm:lastName" /&amp;gt;
            &amp;lt;show id="cm:email" /&amp;gt;
            &amp;lt;show id="cm:jobtitle" /&amp;gt;
            &amp;lt;show id="cm:organization" /&amp;gt;
            &amp;lt;show id="sizeCurrent" /&amp;gt;
            &amp;lt;show id="sizeQuota" /&amp;gt;
            &amp;lt;show id="eng:rolAsociado" force="true" /&amp;gt;
            &amp;lt;show id="eng:fechaNacimiento" force="true" /&amp;gt;
         &amp;lt;/field-visibility&amp;gt;
         &amp;lt;appearance&amp;gt;
            &amp;lt;field id="cm:userName"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/info.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="cm:firstName"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="cm:lastName"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="cm:email"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="cm:jobtitle"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="cm:organization"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="eng:rolAsociado" label="Número de Rol del Asociado"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="eng:fechaNacimiento" label="Fecha de Nacimiento"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/date.ftl"&amp;gt;
                  &amp;lt;control-param name="showTime"&amp;gt;false&amp;lt;/control-param&amp;gt;
               &amp;lt;/control&amp;gt;
            &amp;lt;/field&amp;gt;
         &amp;lt;/appearance&amp;gt;
      &amp;lt;/form&amp;gt;
   &amp;lt;/forms&amp;gt;
&amp;lt;/config&amp;gt;

&amp;lt;config evaluator="string-compare" condition="profile" replace="true"&amp;gt;
   &amp;lt;forms&amp;gt;
      &amp;lt;form&amp;gt;
         &amp;lt;field-visibility&amp;gt;
            &amp;lt;show id="cm:firstName" /&amp;gt;
            &amp;lt;show id="cm:lastName" /&amp;gt;
            &amp;lt;show id="cm:jobtitle" /&amp;gt;
            &amp;lt;show id="cm:organization" /&amp;gt;
            &amp;lt;show id="cm:location" /&amp;gt;
            &amp;lt;show id="cm:telephone" /&amp;gt;
            &amp;lt;show id="cm:mobile" /&amp;gt;
            &amp;lt;show id="cm:email" /&amp;gt;
            &amp;lt;show id="cm:skype" /&amp;gt;
            &amp;lt;show id="cm:instantmsg" /&amp;gt;
            &amp;lt;show id="cm:googleusername" /&amp;gt;
            &amp;lt;show id="cm:userstatus" /&amp;gt;
            &amp;lt;show id="eng:rolAsociado" force="true" /&amp;gt;
            &amp;lt;show id="eng:fechaNacimiento" force="true" /&amp;gt;
         &amp;lt;/field-visibility&amp;gt;
         &amp;lt;appearance&amp;gt;
            &amp;lt;field id="cm:firstName"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="eng:rolAsociado" label="Número de Rol del Asociado"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/textfield.ftl" /&amp;gt;
            &amp;lt;/field&amp;gt;
            &amp;lt;field id="eng:fechaNacimiento" label="Fecha de Nacimiento"&amp;gt;
               &amp;lt;control template="/org/alfresco/components/form/controls/date.ftl"&amp;gt;
                  &amp;lt;control-param name="showTime"&amp;gt;false&amp;lt;/control-param&amp;gt;
               &amp;lt;/control&amp;gt;
            &amp;lt;/field&amp;gt;
         &amp;lt;/appearance&amp;gt;
      &amp;lt;/form&amp;gt;
   &amp;lt;/forms&amp;gt;
&amp;lt;/config&amp;gt;&lt;/LI-CODE&gt;&lt;H4&gt;The Issue:&lt;/H4&gt;&lt;P&gt;Even though we copied the full definition of native fields for cm:person along with our forced aspect properties (force="true"), and applied a total replacement of the form layout via replace="true", Share completely ignores the configuration.&lt;/P&gt;&lt;P&gt;The user forms (whether rendering the "My Profile" page or the "Admin Tools &amp;gt; Users" edit grid) keep showing the out-of-the-box native fields only, rendering the custom aspect properties completely invisible.&lt;/P&gt;&lt;P&gt;We verified that the XML file is indeed being parsed by Tomcat (intentionally breaking the XML format immediately crashes the user console with a Failed to parse config stream exception), but valid layout modifications are silently bypassed.&lt;/P&gt;&lt;P&gt;Since the referenced article is from 2010, we suspect the user management dashboards might be decoupled from the standard Surf dynamic forms processor or hardcoded in modern revisions.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Has anyone successfully overridden the userid or profile forms to support custom aspects?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do modern versions of Share require deploying a dynamic Surf Extension Module (/site-data/extensions) instead of the global share-config-custom.xml to modify cm:person layouts?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance, workaround, or pointers on how to achieve this would be highly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 04:04:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498653#M40833</guid>
      <dc:creator>AX</dc:creator>
      <dc:date>2026-06-03T04:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Share ignores custom form extensions and replace="true" for cm:person layouts (userid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498659#M40835</link>
      <description>&lt;P&gt;I'm sorry I didn't mention that this is Alfresco Community Edition 25.2 on ubuntu 24.04 server.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 12:53:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498659#M40835</guid>
      <dc:creator>AX</dc:creator>
      <dc:date>2026-06-03T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Share ignores custom form extensions and replace="true" for cm:person layouts (userid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498673#M40836</link>
      <description>&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;I make a quick look and the most obvious cause for your problem is that you are using a wrong condition. I dont see those conditions in any of the example config.xml&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i think those pages are not obtaining its fields from the config.xml, instead they are&lt;A href="https://github.com/Alfresco/share/tree/6e47606435ebacb3aa7dd3c083428d57c2655245/share/src/main/resources/alfresco/site-webscripts/org/alfresco/components/profile" target="_self"&gt; scripted as a widget&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe you need to override the widget&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 11:17:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498673#M40836</guid>
      <dc:creator>jesusmarmol</dc:creator>
      <dc:date>2026-06-04T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Share ignores custom form extensions and replace="true" for cm:person layouts (userid</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498700#M40838</link>
      <description>&lt;P&gt;Hello jesusmarmol, I´ll try to override the widget, thank you!&lt;BR /&gt;Arturo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 01:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/share-ignores-custom-form-extensions-and-replace-quot-true-quot/m-p/498700#M40838</guid>
      <dc:creator>AX</dc:creator>
      <dc:date>2026-06-05T01:49:25Z</dc:date>
    </item>
  </channel>
</rss>

