simple configuration my-config-custom.xml fails
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2013 01:35 PM
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:
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?
THANK YOUU!!
<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}&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!!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2013 08:09 AM
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?
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?
