0

I have a content type 'Exhibit' with fields 'uuid'(text with single value), 'name'(text with single value), 'description'(long text and summary), 'section'(text with unlimited values). I have used views to display 'Exhibit' in table format. Exhibit view

Now when i click on Add section. I want the field Section in Exhibit view to be uuid values in Section content type. I want the uuid values as a drop down . so that customer can select one uuid and enter the details for that uuid. How can i achieve this? Please help.

enter image description here

1 Answer 1

3

I think it would make sense if your 'exhibit' content type references sections, which are themselves nodes (through nid reference fields) or through a reference field on the section that points back to the exhibit. Then you can build the view with relationships to look however you want.

The point of having everything be a node is that you can take advantage of a lot of built-in functionality, as well as a lot of contrib modules which are geared towards nodes.

So if you create the structure as I mentioned above, you can add sections to exhibits with this module: Node Reference URL, which allows you to automatically fill in the nid reference field.

Does that work?

4
  • will try this and let you know if it worked
    – Cindrella
    Sep 18, 2012 at 4:55
  • I tried this. but what I am getting is the title of the 'Exhibit' content type as 'uuid' values for section. But I want the 'section' field values of 'Exhibit' content type as 'uuid' values for 'Section' content type.
    – Cindrella
    Sep 18, 2012 at 5:46
  • Does it matter which content type is referencing which? Views will let you display them properly, with the correct relationships setup, with either scenario, right? Is that (the view) the part that's causing you issues? Sep 18, 2012 at 18:03
  • I think I haven't made my question clear. It matters which content type it is referencing. Because depending on the selected 'uuid' values of section content type , customer needs to fill the remaining fields for that particular uuid value. After that views can be used to display those particular values.
    – Cindrella
    Sep 20, 2012 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.