cancel
Showing results for 
Search instead for 
Did you mean: 

simple configuration my-config-custom.xml fails

anita_platos
Champ in-the-making
Champ in-the-making
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!!
1 REPLY 1

anita_platos
Champ in-the-making
Champ in-the-making
What I mean is that I want to create a document in the Share like I can do it in the Alfresco Explorer. The typical steps - I don´t mind the order -:
1. Select "Add content"
2. It let you attach the file (IMPORTANT!)
3. You choose your type "my-type"
4. You introduce the customized metadata of your type and you save it
I know how to do it with the Share, but without uploading the file. Does not exist any way to do it in the Share with the file uploader included?