Overriding / modifying default content model code

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2009 07:14 AM
Hi all,
First off, I'm not sure if this is the right forum to be asking this; if not, I apologise for putting it here. With that out of the way…
I'm looking at the code behind Labs to see if I can do things such as:
- Remove "content" from the content type drop-down menu. I've added new types for categorisation, but am wondering if the default "content" value can be removed without breaking things;
- Create a custom metadata field that, instead of typing into, can have the value selected from a drop-down/combobox menu, and
- Hide some of the default metadata fields that appear when adding new content.
I've been reading through the documentation, and I've learned a lot about Alfresco already, but I'm unsure as to how to do the above. I gather that overriding the default code (possibly by altering a copy of it to suit my needs, and then declaring the .XML or other files) would do it, but I'm not 100% sure if this can be done in XML only, or if Java editing would be required. Any information or examples that people could provide would be *MASSIVELY* appreciated.
First off, I'm not sure if this is the right forum to be asking this; if not, I apologise for putting it here. With that out of the way…
I'm looking at the code behind Labs to see if I can do things such as:
- Remove "content" from the content type drop-down menu. I've added new types for categorisation, but am wondering if the default "content" value can be removed without breaking things;
- Create a custom metadata field that, instead of typing into, can have the value selected from a drop-down/combobox menu, and
- Hide some of the default metadata fields that appear when adding new content.
I've been reading through the documentation, and I've learned a lot about Alfresco already, but I'm unsure as to how to do the above. I gather that overriding the default code (possibly by altering a copy of it to suit my needs, and then declaring the .XML or other files) would do it, but I'm not 100% sure if this can be done in XML only, or if Java editing would be required. Any information or examples that people could provide would be *MASSIVELY* appreciated.

Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2009 11:45 AM
If you figured it out, I'd be very interested in the answer as well
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2009 10:52 AM
Hi mnorth
Have you solved it? Could you provide the solution?
Have you solved it? Could you provide the solution?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2009 09:51 AM
I'm interested too; for example, I'd like to make the default description mandatory.
I found an example here but didn't find the way to make it works.
To override the default "content" I tried this, but it doesn't work :
I found an example here but didn't find the way to make it works.
To override the default "content" I tried this, but it doesn't work :
<alfresco-config>… <config evaluator="string-compare" condition="Content Wizards" replace="true"> <content-types> <type name="yourPrefix:yourType" /> </content-types> </config>…</alfresco-config>
Works for the languages but not for that…
