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

cesarista
World-Class Innovator
World-Class Innovator

Hi:

As a walkaround, you can define a custom type that include the corresponding aspect as mandatory.

Regards.

--C.

are you suggesting to create  model using Model Manager.?

I created a new model abc:model1 through Model Manger in Admin tools. Inside that I created Aspect and selected my aspect which has the metadata that I want. Dragged metadata one by one in Layout designer of the Aspect. This model showed up in Allowed Types of Uploader Plus. But my metadata didn't show up as expected.

douglascrp
World-Class Innovator
World-Class Innovator

Using Model Manager you won't be able to define aspects as mandatory for the custom type.

For that, follow ‌'s recommendation and define your model using xml.

‌ Let me know if I am missing something or if you were suggesting something else

cesarista
World-Class Innovator
World-Class Innovator

In that case, it is preferable doing it via bootstrap, where you can define different forms for Share view. Probably if you export the content model created in model manager, you only can see one of the forms. Check the following link:

Working with custom content types · softwareloop/uploader-plus Wiki · GitHub 

Regards.

--C.

Hi

I followed the link you mentioned to create custom types, The metadata shows up in the uploader form correctly but when I do Change Type for a document and select my custom type,

cesarista
World-Class Innovator
World-Class Innovator

Hi:

Please, provide the corresponding alfresco and share logs for futher details.

Regards.

--C.

douglascrp
World-Class Innovator
World-Class Innovator

The Change Type action has nothing to do with Uploader Plus.

You have to understand you can not change type freely. There are rules that are enforced by Alfresco, like, once you change from cm:content to your, lets say, custom:type, there is no way to change back to the original type.

Another one is that you can not change types between sibling types. The only way you can go is from parent to child.

I imagine, by the thread contenxt, that you uploaded a document, using Uploader Plus to set the type, and then you are trying to use the Change Type action to do another change.

If that is the case, my previous explanation would explain why it is not working.

I hope that is clear enough.

Hi Douglas C. R. Paes‌,

I understand that we cannot go back to the parent in types. If I am in custom:type, I cannot go back to the parent or it's sibling since the option will not show up in the dropdown of Change Type.

But in my case, I am creating a plain text file, Change Type dropdown is showing my custom:type. And yet, it gives this message "Unable to change type of document"