AnsweredAssumed Answered

How to custom a new Surf Extension Modules

Question asked by allblue on Oct 19, 2016

Following the following tutorial

 

Adding a menu item to the "Create..." menu in DocLib | Alfresco Documentation

 

I add a new item on the menu that return me to a content creation page, and I want to change the visual of this page (see example image below), but I can not find documentation about this, it is possible to change this code using tags or setting to make customization and do not keep the default result?

 

 

<config evaluator="string-compare" condition="DocumentLibrary">

     <create-content>

        <content id="my-doc" label="my-page" type="pagelink" index="10" icon="text">

             <param name="page">create-content?destination={nodeRef}&amp;itemId=cm:content&amp;mimeType=text/plain</param>

        </content>

     </create-content>

</config>

<config evaluator="model-type" condition="cm:content">

   <forms>

     <form>

       <field-visibility>

          <show id="cm:name"/>

          <show id="cm:content" force="true"/>

          <show id="cm:title" force="true"/>

          <show id="cm:description" force="true"/>

          <show id="mimetype"/>

          <show id="app:editInline" force="true"/>

      </field-visibility>

      <appearance>

        <field id="cm:name">

           <control>

              <control-param name="maxLength">255</control-param>

            </control>

         </field>

         <field id="cm:title">

            <control template="/org/alfresco/components/form/controls/textfield.ftl"/>

         </field>

         <field id="cm:content" label-id="">

            <control>

              <control-param name="editorAppearance">explorer</control-param>

            </control>

         </field>

         <field id="mimetype">

            <control template="/org/alfresco/components/form/controls/hidden.ftl">

              <control-param name="contextProperty">mimeType</control-param>

            </control>

         </field>

         <field id="app:editInline">

            <control template="/org/alfresco/components/form/controls/hidden.ftl">

             <control-param name="contextProperty">editInline</control-param>

            </control>

         </field>

       </appearance>

     </form>

  </forms>

</config>

 

 

 

Outcomes