Sunday 05 September 2004 6:11:45 am
Hi all,
I'm creating a NGO directory with the topics they work in. Eg. the "red cross" has several topics like "health" and "conflicts" and "Friends of the earth" has "environment".
- When I display a NGO, I want to list the topics they work in. - When I display a topic, I want to list the related NGOs. I've tought of/tried several datatypes to handle that, but I haven't found a 100% good one. What would you suggest ?
<b>ezSelection (with multiple choices)</b>
PROS:
- easy to create,
- can list the NGOs with fetch(+attribute_filter)
CONS: - can't add attributes to the topic (eg a description, links to other sites...)
<b>object relation</b>
PROS:
- easy to create
- can have as many attributes as I want for the topic,
CONS:
- can't select more than one topic. - Couldn't find a way to get a list of all the NGO associated with the topic "XXX"
<b>object relation list</b>
PROS:
- can have as many attributes as I want for the topic,
- can select more than one topic.
- can (could) let the user easily create a new topic from the form used to input a new NGO
CONS:
- can't filter on a class (eg topic) and parent node
- I need to customise the interface (the default one is too complicated,I just need a multiple choice list). - Couldn't find a way to get a list of all the NGO associated with the topic "XXX"
<b>keyword</b> I don't know where I can manage the list of keywords, nor how to list all the objects associated with a keyword.
<b>enum</b> Seems to be deprecated by Selection.
<b>custom attribute based on the contrib category </b> I don't feel its the right way, as I belive my need has the same pattern that a lot of sites.
<b>Conclusion/discussion</b>
So far the best way seems to create an "ez object multiple relation", based on the object relation list.
However, it doesn't solve the problem of listing all the objects linked to the item. I haven't played with the fetch+attribute_filter with a object relation list attribute, but IMHO, it should exist an easier way of doing it. Does ez miss a "bidirectionnal related object" ? How have you implemented that on your sites ? (on a discussion in this forum, Paul mentionned a need like mine for books if I understood right). Any idea or suggestion more than welcome. Thanks in advance, Xavier
http://www.sydesy.com
|