cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding / modifying default content model code

mnorth
Champ in-the-making
Champ in-the-making
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.  Smiley Happy
3 REPLIES 3

burriad
Champ in-the-making
Champ in-the-making
If you figured it out, I'd be very interested in the answer as well

lesha-sha
Champ in-the-making
Champ in-the-making
Hi mnorth
Have you solved it? Could you provide the solution?

riogrande
Champ in-the-making
Champ in-the-making
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 :

<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…