Re: ATVocabularyManager and AGX

Harald Friessnegger <harald.friessnegger-H84adUgip2a/3pe1ocb+swC/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Organization Lovely Systems GmbH
Message-ID <[email protected]>
thanks maurits,

> On 2005-12-22, Harald Friessnegger
> <harald.friessnegger@...> wrote:
> > is there a tagged value in AGX that allows to set the type of vocabulary 
to
> > use?
> 
> 
http://plone.org/documentation/tutorial/archgenxml-getting-started/tagged-value-overview
> lists all the tagged values.  I think vocabulary:vocabulary_type is
> what you want.
> 


too bad that i overlooked this tagged value :-(
setting vocabulary_type to 'TreeVocabulary' was not enough.

ArchGenXML generated SimpleVocabularyTerms as terms for TreeVocabulary which
resulted in errors during install since a default value is added in 
Install.py.
Using the tgv vocabulary:term_type and setting it to 'TreeVocabularyTerm' 
worked out fine.

I've added this tgv to 
http://plone.org/documentation/tutorial/archgenxml-getting-started/tagged-value-overview.

short summary how to generate a hierarchical vocabulary with ArchGenXML:
vocabulary:type=ATVocabularyManager
vocabulary:name=regions
vocabulary:vocabulary_type=TreeVocabulary
vocabulary:term_type=TreeVocabularyTerm

regards, fRiSi



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.