cancel
Showing results for 
Search instead for 
Did you mean: 

Content Modelling model.xml Best Practice

shotley
Champ in-the-making
Champ in-the-making
Hi

Simple question to experienced users:  are you coding <content>model.xml by hand?

I have in mind something like: model using UML and then combining the UML with the xsd to automagically  Smiley Very Happy create the bulk of the content model xml file.

And, I'd like to do that with Eclipse.

I've seen SideLabs mentioned, but unsure about how that helps since their website is rather sparse.

So, some insight into how you go about the possibly painful and laborious task of coding the xml would be welcomed.  I'd like to avoid manually writing xml if at all possible ….

Jason
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
I write the XML files by hand, well with an XML editor.  There's not a lot to them.

You can add the XSD file to Eclipse's XML catalog to get syntax highlighting and validation.

mikeh
Star Contributor
Star Contributor
Regarding Side Labs: it provides the graphical UML option it sounds like you're looking for. Further to that though, it also customises various Share config files to expose those models within Share automatically.

Note: this is all based off a demo I saw of Side Labs at the recent London DevCon, so you might want to contact them for more detailed info.

Thanks,
Mike

alejandro
Champ in-the-making
Champ in-the-making
Hello:

I need to add new attributes to the user, ie extending the user model. We saw that in the contentModel, is where are the attributes that have defined the alfresco user, but what I find is where you put the code to display these properties, as is done when you create a content type and then modified the web-client-config.xml.

Greetings, I hope your help.

Note: Sorry for my English.