Categorising document types using other document types
Hi,
A scenario for you:
I am writing a website that lists music albums. Each album is classified under each of the following categories:
- Genre (Rock/Opera/Classical/etc) - Band (Nirvana/The Beatles/etc) - Decade of release (60s/70s/etc)
Each of the items listed above is a document types, so I have four document types in total in my website (Album/Genre/Band/Decade).
I can easily categorise an album under a band by making a band the parent node of the album, e.g.
Nirvana (document type: band) ---- In Utero (document type: album) ---- Nevermind (document type: album) The Beatles (document type: band) ---- Abbey Road (document type: album)
But outside of this structure, I also have other document types:
-- Rock (document type: genre) -- Opera (document type: genre) -- The 60s (document type: decade)
How do I assign an album to one of these genres or decades? I obviously need to add a property to the album document type, but I'm not sure what data type to use. In an ideal world I want to get two dropdowns, one containing the values of all documents of type genre in the system and the other containing the values of all documents of type decade. Either that or a content picker that only shows documents of a certain type.
This seems quite a simple request on the face of it - hopefully something can tell me how to do this?!
The problem as I see it with that is imagine you want to put the same description and image against a decade, such as for the 60s:
Image: Picture of The Beatles and Rolling Stones Description: The 1960s were a revolutionary time for popular music, etc, etc
To populate your tree with some real data:
Beatles 60s Revolver Sgt Peppers 70s Let It Be Rolling Stones 60s Aftermath 70s Sticky Fingers Exile On Main Street
Would I need to create two documents for the 60s (once for the Beatles, once for the Rolling Stones) in this example and put in the same image and description twice?
It's ok - I've discovered what I need - the "Ultimate Picker" control, which you then point to a certain part of your node tree that contains your categories (such as decades).
Categorising document types using other document types
Hi,
A scenario for you:
I am writing a website that lists music albums. Each album is classified under each of the following categories:
- Genre (Rock/Opera/Classical/etc)
- Band (Nirvana/The Beatles/etc)
- Decade of release (60s/70s/etc)
Each of the items listed above is a document types, so I have four document types in total in my website (Album/Genre/Band/Decade).
I can easily categorise an album under a band by making a band the parent node of the album, e.g.
But outside of this structure, I also have other document types:
How do I assign an album to one of these genres or decades? I obviously need to add a property to the album document type, but I'm not sure what data type to use. In an ideal world I want to get two dropdowns, one containing the values of all documents of type genre in the system and the other containing the values of all documents of type decade. Either that or a content picker that only shows documents of a certain type.
This seems quite a simple request on the face of it - hopefully something can tell me how to do this?!
Thanks,
Jenni
Hi. I would organise this in the following structure:
Band
Decade
Album
Album
Decade
Album
Band
Decade
Album
Decade
Album
Album
Album
And then make the Genre as a checkbox list or drop-down list property of the Album doctype.
Thank you for the response Rodion!
The problem as I see it with that is imagine you want to put the same description and image against a decade, such as for the 60s:
Image: Picture of The Beatles and Rolling Stones
Description: The 1960s were a revolutionary time for popular music, etc, etc
To populate your tree with some real data:
Would I need to create two documents for the 60s (once for the Beatles, once for the Rolling Stones) in this example and put in the same image and description twice?
It's ok - I've discovered what I need - the "Ultimate Picker" control, which you then point to a certain part of your node tree that contains your categories (such as decades).
is working on a reply...