Hi Will,

(I post to the user list as this might interest one or the other

I've been playing around with the data module a bit. It's a welcome enhancement of Magnolia. It its current state it's very limited though - if I did not miss something.

Whenever you have structured data you will need the ability to reference other data nodes, e.g. products <--> product categories or committees <--> committee members with their function <--> people. There is no easy way to do this in the data module as of now - or again: At least I could not find it.

To fix this, I propose the development of the following:



I think most of the features are actually already there

Data TreeBrowser
- Lists the nodes (especially also mgnl:contentNodes) on certain repository (in our case "data") - Lists only a certain type, i.e. "data" module type -> see config /modules/data/config/types - At this point I'm not sure if the actual data node knows anything about its type. I have not checked the meta data yet. - Maybe the type is defined by the path, so on should be able to limit the TreeBrowser to a certain path as defined in /modules/data/ config/types/[my_type]/rootPath - Define which fields should be displayed (Only the "name" will probably not do)
        - Ability to filter, especially when there are many records?
        - Ability to sort?
When ever you create a type (with the GUI) it creates such a tree even if this tree is limited it is already very helpful. You find the trees under /modules/data/trees

To define which fields are listed in the tree view (or tree browsing view) you can use the property in the dialog definition:
- list (rendered in the normal tree/list view)
- browse (rendered in browse mode too)

dataUuidLink Control
        - Allows the referencing of a single data node of a certain type
        - Calls the TreeBrowser described above for the selection of the node
        - Acts like the uuidLink control

The normal uuidLink control supports that: use the property repository (data) and and the tree property (name of the type/tree)

dataMultiselect Control
        - Allows the referencing of multiple data nodes of a certain type
        - Calls the TreeBrowser described above for the selection of the node
- Acts like a combination of the multiselect control and the uuidLink control

In /modules/data/controls you will find some additional controls. I think dataMultiSelect is what you search for (there is a uuid based variation too). Use again the repository and tree property to allow browsing the data

Have a nice Day

Philipp Bracher


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to