Hi,

I'm testing nodereference for drupal 6 and, after some try I would like to suggest some options that would bring a lot more flexibility :

- Let user choose if the nodereference should be valid or not

This is a case I often see, and, each time, I try to modify nodereference, and, each time, I abandon and I make link manually in the body textarea.
The idea is to provide a checkbox in the admin setting to let user choose if they want to valid a nodereference or not. Basically, when the option is checked, the module behavior is the one we have today.
If the option is unchecked, the nodereference save the user input as a simple string instead of a link if a node reference is not found (ATM, it save nothing).

- Let the user put prefix and/or suffix field to a node reference

Yes, nodereference allow you to eeasily find a node, but you can't add any additionnal informations, or the node is not validated. A basic example will be more explicit. Imagine you make a website of recipes, and your ingredients are a node reference.

You will need to list ingredients like that :

2g sugar
2x tomato
...

With nodereference, it's not possible, because you cannot write the quantity before a reference... so, the idea is to provide prefix or suffix textfield as options.

What do you think about these ideas, or maybe there is already a way to do that that I don't know ?

Any help and opinions would be appreciated.

regards,

zmove

Comments

yched’s picture

Status: Active » Closed (duplicate)

1st request already exists somewhere (search the issue queue)
2nd request would be the combo field : #119102: Combo field - group different fields into one

zmove’s picture

Hi, thank you for your answer.

For 1st request, I didn't remember I posted a similar issue long time ago : #167809: Nodereference optional. It is the same you think, or is there any (good), news about this feature ?

For 2nd request : If I understand well, flexifield. I tried it quickly and I didn't understood how it works, but it's another issue ;)

yched’s picture

I wouldn't recommend flexifield - I don't think it's a promising direction.
You'd better keep an eye on the combo field stuff mentioned above.

kswan’s picture

FYI

I submitted a Drupal 6 patch for the 1st request on #167809: Nodereference optional.

kswan’s picture

FYI

I submitted a Drupal 6 patch for the 1st request on #167809: Nodereference optional.