-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Plone 3 Products Development Cookbook
At this stage, we have drawn the definitions for a new content type based on Plone's default News Item but with some differences: there's a lead field, a country field, and a modified relatedItems field. There's also a new countryVocabulary method that will provide the country options list for that field.

To turn all these drawings into a Plone usable content type, we must finally use ArchGenXML.
Save the model as poxContentTypes.zargo inside the models folder we created before.
Go to your ArchGenXML models folder and run:
cd ~/libexec/archgenxml/models ../bin/archgenxml ./poxContentTypes.zargo
If everything is okay, you'll get an output similar to this:
INFO ArchGenXML Version 2.4.1
(c) 2003-2009 BlueDynamics Alliance, Austria, GPL 2.0 or later
INFO Directories to search for profiles: ['~/archgenxml/profiles']
INFO Parsing...
INFO Profile files: '{u'archgenxml_profile.xmi': u'~/archgenxml/profiles/archgenxml_profile.xmi'}'
INFO Directory in which we're...
Change the font size
Change margin width
Change background colour