02-13-2018 04:50 PM
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
02-22-2018 02:42 PM
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.
02-17-2018 07:28 PM
I can not see the attachment.
02-18-2018 02:11 PM
02-19-2018 08:10 AM
Weird, I still can not see the attachments.
02-19-2018 05:41 PM
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="icfdocwner">
<title>Document Owner</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cmerson</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
</type>
</types>
</model>
02-22-2018 12:56 PM
02-22-2018 02:42 PM
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.
02-22-2018 02:53 PM
02-16-2018 08:13 PM
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.
02-14-2018 02:07 AM
Hi Sakshi Kochhar,
Allowed Types only shows the type so you need to create custom type instead of aspect in a model.
Explore our Alfresco products with the links below. Use labels to filter content by product module.