0
votes

I have a rather complex challenge. My new content type called MeetingVenue needs to save multiple occurances of mutiple categories of information. An example is:

  • Node "MeetingVenue" needs to have information on multiple meeting rooms.
  • Each one of those rooms can be setup as a Lecture Theatre, Classroom, Boardroom or Dance Hall.
  • In each one of those configurations, the capacity is different so I need to save that information too.

I am trying to find/create a CCK field that will allow me to to pair each one of the room types i.e (Lecture Theatre, Classroom, Boardroom and Dance Hall) to their capacity value. Much like an array.

On top of that, I need to associate each one of the arrays I create to a unique name.

Does a module which is the partial/full solution already exist? If not, can I create a custom module to do it?

Visual:

enter image description here

1
I'd like to help with this, but I don't have enough of the right kind of info yet. When you say "pair with" and "associate", the answer will depend on in what way the "paired" and "associated" info will be used. So I need to get a sense of the bigger structural/relationships picture.Michael D
OK. I attached a small image to help put things in perspective. I am trying to represent the information in the image as CCK fields in a node.sisko

1 Answers

0
votes

Try using 2 different content types with a node reference field tying them together. For instance, you would have Building (or Venue, whatever you want to call it) with simply a name of the place, maybe the address (love Gmap/Location combo for D6!). Then you have a content type Meeting Room which has a field for capacity and a node reference field for Building. Use the nodereference_url module to link them together. This module is great because it creates a link on the Building node to "Add a Meeting Room in this Building", sends you to node/add/room and can be set to redirect after you have created to the created node (the room) or the referenced node (the building) to add more rooms.

The beauty of this approach is that it's simple to create a view of rooms with an argument on nid to show only the rooms and capacity and other info on each room