2

I'm creating a content type Event. I want to reference the node of another content type Venue, so the user will be able to click to the venue node from the event.

To reference the venue on the Event creation page, ideally it would be a text field with autocomplete showing a list of possible venue nodes.

Now if the venue node hasn't been created yet, can Drupal allow the Event to be created using the entered text as display (i.e plain text)?

1

Use the Node Reference Create module.

Node Reference Create is an enhancement to the nodereference autocomplete widget that allows users to reference non-existent nodes.

When no matching node is selected, the new nodes are automatically created allowing for a seamless and intuitive user experience that is similar to free tagging.

  • Ideally I just want it displayed as plain text. I don't want a new node to be created if it is not complete. – Chris Lai Mar 11 '12 at 14:44
  • This is not possible using a node reference field, regardless of the widget you use to enter field values. The reference is saved using the primary key of the node table, which is an integer. You would have to write your own field module. – Oswald Mar 11 '12 at 17:14
  • Would you be available for paid help? – Chris Lai Mar 11 '12 at 17:17
0

It is absolutly possible

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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