How to display 'content type'?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2007 06:28 PM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 07:01 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 11:58 AM
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
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
