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)?

2 Answers 2

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.

3
  • Ideally I just want it displayed as plain text. I don't want a new node to be created if it is not complete.
    – chrisck
    Commented Mar 11, 2012 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
    Commented Mar 11, 2012 at 17:14
  • Would you be available for paid help?
    – chrisck
    Commented Mar 11, 2012 at 17:17
0

It is absolutly possible

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.