cancel
Showing results for 
Search instead for 
Did you mean: 

How to display 'content type'?

llin
Champ in-the-making
Champ in-the-making
Hello,

I have created my custom content model and exposed most of properties in UI. But I lost "Content Type" and "Encoding" as displayed as Alfresco cm:content.

How can I modify in order to edit "Content Type" and "Encoding" for my custom content model inside Alfresco Web Client?

Thank you.

Ally
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Configuration for properties are not inherited so to when you define a set of properties for your custom type you also have to include those from super types.

llin
Champ in-the-making
Champ in-the-making
Hello gavinc,

I have this for mimetype:

<config evaluator="node-type" condition="tal:lilacdoc">
<property-sheet>
<show-property name="mimetype" display-label-id="submission.mimetype" show-in-view-mode="true" show-in-edit-mode="false" />
<show-property name="tal:url" display-label-id="submission.url" />
….

The "Content Type" I meant is the mimetype property on "Details" page. For the out-of-box type "Content", it will display the document's mimetype, for example "Content Type: Plain Text". When you edit properties, it even comes with a drop-down list to make change to document mimetype.

But for my custom content model, I lost the capability as "Content". Using the line <show-property name="mimetype" ….>, I only get it displaying on "Details" page, but can't have it editable. I also tried converter="org.alfresco.faces.MimeTypeConverter". But it lost the drop-down list in edit mode and even worst, lost the mimetype if you click "Close".

Is there a way I can fix that? Thank you.


Ally
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.