Adrian Butnaru ha scritto:
Hi Matteo,
I mean the header of the table (and the content as well) where the
tree is displayed has only "date" now and the column displays only the
date of creation. I want to display in the tree more: age, gender etc.
What should I do.
For example for the website tree are displayed: name, title, status, date etc.

Adrian

Ok, in this case you may consider to create your own tree. Simply extends the Magnolia one (info.magnolia.module.data.trees.JCRAdminTree) and override the methods you need to display your custom attributes.

You can create, I think, a general JCRExtendedAdminTree, and read from configuration the column you need.
Configuration is below <config>/modules/data/trees


I can imagine something like this:

[-] trees
    [-] Students
        [-] displayMapping
            [-] columns
                [-] name
                    [ ] title        | Name
                    [ ] jcrField     | name
                    [ ] color        | #FF0000
                    [ ] ...          | ...
                [-] gender
                    [ ] title        | Gender
                    [ ] jcrField     | gender
                    [ ] color        | #0000FF
                    [ ] ...          | ...
                [-] age
                    [ ] title        | Age
                    [ ] jcrField     | age
                    [ ] color        | #00FF00
                    [ ] ...          | ...

In this case you can reuse that tree to display every custom dataItem.
M.


----------------------------------------------------------------
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