cancel
Showing results for 
Search instead for 
Did you mean: 

Bring aspects in uploader plus form

sakshik
Star Contributor
Star Contributor

Hello,

I have installed Uploader Plus

I have my custom metadata in the form of aspects:

I need to bring this up in uploader plus Allowed types which only shows up models and not aspects:

Is there a way metadata from my aspect can come in the uploader form of  uploader plus

1 ACCEPTED ANSWER

douglascrp
World-Class Innovator
World-Class Innovator

I believe I have just figured out what your problem is.

In your model, and in the screenshot with the document already set as the custom type, the name of the type is icfdoc:metadata, but in the screenshot showing the browser developer tools error, the type has a typo, it is like icfdoc:metdata.

So, in order to fix that, what you have to do is to fix the share-config-custom.xml, in the following section:

<types>
    <type name="cm:content">
        <subtype name="icfdoc:metdata" />
    </type>
</types>‍‍‍‍‍‍

Check that and tell us if that did the trick.

View answer in original post

28 REPLIES 28

douglascrp
World-Class Innovator
World-Class Innovator

I can not see the attachment.

Here are the attachments

douglascrp
World-Class Innovator
World-Class Innovator

Weird, I still can not see the attachments.

icf-model-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

<!-- Registration of new models -->
<bean id="company.icfdoc.model.extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionary
Bootstrap">
<property name="models">
<list>
<value>alfresco/extension/company/model/icfdoc-model.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/extension/company/model/icfdoc-model-ResourceBundle</value>
</list>
</property>

</bean>

</beans>

icfdoc-model-ResourceBundle.properties

type.icfdoc= Metadata
icfdoc.type.icfdoc.title=File Type
icfdoc.property.icfdoc_internal_external.title=Internal/External

icfdoc-model.xml

<?xml version="1.0" encoding="UTF-8"?>
<model name="icfdoc:ICFDOCMetaData" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!-- Meta-data about the model -->
<description>Provides the necessary properties to support the content.</description>
<author>xxx</author>
<version>1.0</version>

<!-- Imports are required to allow references to definitions in other models -->
<imports>
<!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!-- Import Alfresco Content Domain Model Definitions -->
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>

<!-- Introduction of new namespaces defined by this model -->
<namespaces>
<namespace uri="http://www.company.com/icfdoc/model/1.0" prefix="icfdoc"/>
</namespaces>

<!-- Standalone Constraints -->
<constraints>

<constraint name="icfdoc:internal_external_constraint" type="LIST">
<parameter name="allowedValues">
<list>
<value>Internal</value>
<value>External</value>
</list>
</parameter>
</constraint>
<constraint name="icfdoc:level_constraint" type="LIST">
<parameter name="allowedValues">
<list>
<value>L0</value>
<value>L1</value>
<value>L2</value>
</list>
</parameter>
</constraint>

</constraints>


<!-- T Y P E D E F I N I T I O N S -->


<types>
<type name="icfdoc:metadata">
<title>xxxx</title>
<parent>cm:content</parent>
<properties>
<property name="icfdoc:internal_external">
<title>Internal/External</title>
<description>xxxx</description>
<type>d:text</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="icfdoc:internal_external_constraint" />
</constraints>
</property>
<property name="icfdoc:level">
<title>Level</title>
<description>xxxx</description>
<type>d:text</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>false</tokenised>
</index>
<constraints>
<constraint ref="icfdoc:level_constraint" />
</constraints>
</property>

</properties>
<associations>

<association name="icfdocSmiley Surprisedwner">
<title>Document Owner</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cmSmiley Tongueerson</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>

</type>

</types>
</model>

sakshik
Star Contributor
Star Contributor

‌ and ‌. Kindly let me know if you have any suggestions for above.

douglascrp
World-Class Innovator
World-Class Innovator

I believe I have just figured out what your problem is.

In your model, and in the screenshot with the document already set as the custom type, the name of the type is icfdoc:metadata, but in the screenshot showing the browser developer tools error, the type has a typo, it is like icfdoc:metdata.

So, in order to fix that, what you have to do is to fix the share-config-custom.xml, in the following section:

<types>
    <type name="cm:content">
        <subtype name="icfdoc:metdata" />
    </type>
</types>‍‍‍‍‍‍

Check that and tell us if that did the trick.

Thank you so much ‌. Sorry to bother you so much. It was a typo.

If I upload a file through uploader plus and select my custom type. Node broswer for that document shows correct type

But it doesn't allow to change type.

subham
Champ in-the-making
Champ in-the-making

Hi Sakshi Kochhar‌,

Allowed Types only shows the type so you need to create custom type instead of aspect in a model.