Author
|
Message
|
Esben Maaløe
|
Thursday 19 June 2003 11:54:11 am
It would be awesome if you could define lists that you could assign as properties to classes. The objects of that class' corresponding property would then have the value of one of the list items
|
Esben Maaløe
|
Thursday 19 June 2003 12:50:26 pm
I think it is a splendid idea NOTE: The fact that the topic poster and I share the same name and login is purely coincidential ;)
|
Bård Farstad
|
Thursday 19 June 2003 12:53:47 pm
We've added a new datatype, object relation list, which is used to have a list of object inside another object. Typical luse cases: person with list of address objects, car with list of images, person with list of documents. The list is compiled of normal eZ publish objects. The objects can be stored in the content tree or not. Not sure if this is what you need, but you can test it out in the trunk svn. --bård
Documentation: http://ez.no/doc
|
Esben Maaløe
|
Thursday 19 June 2003 6:11:24 pm
Say I want to do a site about WWII aircraft (not that far fetched - I am a flightsim nerd - Il2 Forgotten Battles rule !) The relevant Aircrafts are either manufactured in Russia, Germany, U.S.A. or England. Say I have some friends (not that far fetched either - I DO actually have a couple of friends :) ) who are not computer buffs - I'd like them to be able to add/edit ACs - but I don't want half of them writing 'U.S.S.R' - the other half 'C.C.C.P' and the last half 'Russia' (one of them can't spell - so he writes ' Rusia' - and as you can see I can't add). I'd like to be able to assign a list of valid values for the 'Manufactured in' field - sort of like the enum field in MySQL. The 'attribute_edit_gui' would then present a select box with the valid values. I don't know if your object_relation_list would be useable in such a case - but I suspect that it would most likely be a workaround.
|
Esben Maaløe
|
Thursday 19 June 2003 6:32:33 pm
Browsed the documentation - wanted to see how you can write new datatypes. There is a datatype called 'enum' !! That's it - I am a happy man :D
|
Gabriel Ambuehl
|
Friday 20 June 2003 3:12:52 am
Where's the difference between object relation list and just plain simple having the attributes existing as subnodes?
Visit http://triligon.org
|
Paul K Egell-Johnsen
|
Friday 20 June 2003 4:49:11 am
If only everyones happiness could be gotten as easily.
--
http://www.vogol.com/user/spdyvkng/blog/
|
Paul Forsyth
|
Friday 20 June 2003 5:11:54 am
maybe we need a happiness datatype :)
|
Paul Borgermans
|
Friday 20 June 2003 6:28:43 am
You may want to use the new matrix datatype: you can correlate hapiness with other parameters like features implemented in ez publish ;-) Watch http://zev.ez.no/svn/nextgen/trunk/kernel/classes/datatypes/ The new ones up to now:
keyword (3.1)
matrix (3.2)
objectrelationlist (3.2) subtreesubscription (3.1) --paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|
Paul Forsyth
|
Friday 20 June 2003 7:14:59 am
friday = happiness. ive been using keyword for a while now but its still a little buggy for multiple keywords though, yet to be fixed. paul
|
cfa cfa
|
Saturday 16 August 2003 7:30:34 am
Paul, is the link you published broken? Doesn't seem to work. http://zev.ez.no/svn/nextgen/trunk/kernel/classes/datatypes/
|
Hans Melis
|
Sunday 17 August 2003 11:08:12 pm
The EZP team took the svn server down temporarily. For more info: http://ez.no/developer/ez_publish_3/forum/developer/taking_down_svn
Hans
http://blog.hansmelis.be
|