AnsweredAssumed Answered

simple configuration my-config-custom.xml fails

Question asked by anita.platos on Aug 29, 2013
Latest reply on Sep 2, 2013 by anita.platos
I´m trying to do something very simple and basic that it doesn´t work. I have made the my-typeModel.xml that installs OK in the alfresco CORE, like this:

<types>
   <type name="cstm:my-document">
   <title>My document</title>
      <parent>cm:content</parent>
      <properties>
         </properties>
      
        <associations>
         <association name="cstm:myattached">
            <source>
              <mandatory>false</mandatory>
              <many>true</many>
            </source>
            <target>
              <class>cm:content</class>
              <mandatory>false</mandatory>
              <many>true</many>
            </target>
         </association>
       </associations>
      </type>
    </types>

My problem is when I want to manage it in the Share. I have a couple of problems:

  1. I want to introduce the cm:name in the creating interface data entry. It doesn´t work using the way below
  2. I want to upload the document using the simple disk explorer - not the association.ftl -, I have tried with  picker.inc.ftl, html-upload.get.html.ftl, file-upload.get.html.ftl, flash-upload.get.html.ftl….and I´m getting crazy!. Is it so difficult to find a simple "Disk Explorer Upload botton"?
  This is the code in my-custom.xml that I should have done wrong, but I don´t know where is the problem, somebody can help what's the right procedure?


  <config evaluator="string-compare" condition="DocumentLibrary" replace="true">
   <create-content>
     <content id="document.my-type" label="My type" type="pagelink" index="90" >
          <param name="page">create-content?destination={nodeRef}&amp;itemId=cstm:my-document</param>
     </content>
   </create-content>
   </config>

  <config evaluator="model-type" condition="cstm:my-document">
      <forms>
       <form>
                <field-visibility>
                <show id="cm::name"/>
               <show id="cstm:myattached" />
               
                  </field-visibility>
                 <appearance>
                <field id="cm::name"/>    
               <field id="cstm:myattached">
                     <control template="/org/alfresco/components/form/controls/association.ftl"/>
               </field>
            </appearance>
            </form>
      </forms>
   </config>
   …



THANK YOUU!!

Outcomes