Personal tools
You are here: Home Documentation Tutorials ArchGenXML 1.x- Getting started Getting started
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Getting started

Create your first content type with ArchGenXML

Jens W. Klein

ArchGenXML is a code-generator for CMF/Plone applications (Products) based on the Archetypes framework. It parses UML models in XMI-Format (.xmi, .zargo, .zuml), created with applications such as ArgoUML, Poseidon or ObjectDomain. This tutorial will help you get started developing applications with the aid of ArchGenXML.
Page 4 of 17.

Creating a minimal content type in UML

Open the UML tool of your choice. Make a new UML model and add a class diagram. Choose the tool for class creation and add a class to the diagram. Give it a name such as "MyFirstAGXContent" and add an attribute MyTextField with type text. See also: example_1.xmi

Example: First Minimal Content Type in UML

Generating the product

Save/export your model as an XMI file with the name MyFirstExample.xmi (or in an XMI-container format like .zargo or .zuml). Then go to the command line and execute:

  ArchGenXML.py MyFirstAGXExample.xmi

ArchGenXML will begin code generation. When it completes, you will have a new folder MyFirstAGXContent on your file system. (The folder will be named MyFirstAGXContent if that's the name you gave to your model; you can overwrite this output directory with the -o option).

Installing and using the generated product

Move the whole folder MyFirstAGXContent to your Zope instance's Products folder. Restart Zope, open Plone in a browser and log in as manager. Choose Plone Setup from the personal bar and choose Add/Remove Products. A new product MyFirstAGXContent should now appear in the list of products available for install. Choose it and click install. Go to your personal folder. In the list of addable items you'll find the new product as an addable content type. Add a test instance to see if it works.

 
by Jens W. Klein last modified March 30, 2006 - 13:10
Contributors: jensens, optilude, reinout, frisi, fifer, et al
All content is copyright Plone Foundation and the individual contributors.

'Getting started' error

Posted by Rick Casey at October 19, 2007 - 15:57
My experience was this: not sure what is meant by 'logging in as manager' so I started my ZMI and logged into that. Under the Root Folder in the left panel, there is a tree structure, the last limb showing my instance of the Plone test I created. Under that, one branch is 'Members'. Selecting that, I was able to bring up a screen showing a list of members on the left, and a picklist in the upper right, that started with 'ATContentTypes tool'. Scrolling down, I found 'MyFirstArchGenExample Content', and clicked the Add button.

When I then logged into my Plone testsite, I found 'MyFirstArchGenExample' listed under 'My folder', but when I clicked on it get a 404 error. Hmmmm....now I wonder how many things I did wrong?

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by