Hi Ernst,

The hierarchies in the datamodule exist of hierarchies of different types. 
Every type has its own definition and can store its own data. You can allow to 
have more types in the same rootpath. You can also allow a parent to have 
multiple types of children. The hierarchy is set up in such a way that the 
hierarchy you define is maintained in the tree with the actual data. If you 
defined type B to be a child of type A, it should never be possible to have a 
type B at another place than as child of a type A. This way you force yourself 
and/or your users to always store the data in a predictable way.

You can solve your problem I think by using (sub)folders. If you have a type X 
in a rootpath, and allow the use of folders, you can store your categories in a 
folder structure in that rootpath. If you wanted to store type Y also in that 
folder structure, you can define that type next to type X, and store that in 
the same rootpath.

If you want to be freed of the limitation of the strict hierarchical structure 
as imposed by the Data Module you could consider writing your own version of it 
just to allow that.

@ Jan and Boris: if this would be a much wanted or used idea, we might consider 
adding an extra boolean for a type like 'enforce hierarchy'. If not enforced, 
types can be all mixed as the users wants it.

Hope this helps.

Bye, Bert

> -----Original Message-----
> From: [email protected] [mailto:user-list-
> [email protected]] On Behalf Of Ernst Bunders
> Sent: dinsdag 15 december 2009 11:14
> To: Magnolia User-List
> Subject: [magnolia-user] Data module: hierarchical data
> 
> 
> hello
> 
> I have a question about the data module version 1.4 and the creation
> of hierarchical data types. What i want is to create a hierarchy of
> categories, so there has to be a child-parent relation between objects
> of the same type (i.e. 'Category').
> 
> Also I would like it if this possible depth of the nesting of
> categories is not determined by creating a similar nesting in the
> category data type definition, but rather by rather allow indefinite
> nesting. This, by the way, is a nice to have. I could live with
> creating a data type definition for categories that simply nest
> category types five steps deep or so.
> 
> Is this currently possible? and if not: what would be the best way to
> achieve it?
> 
> thanks,
> 
> --
> Ernst Bunders
> Ontwikkelaar VPRO
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to