It's possible this is just one of those, "I'm really tired so..." problems, but I just spent 15 minutes trying to figure out why userreference wasn't showing up as a widget type. Turns out it's dependent on optionwidges.module. Here's a patch to point this out to bleary-eyed people. :P
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | req_option.patch | 1.7 KB | webchick |
| user_option.patch | 796 bytes | webchick |
Comments
Comment #1
webchickActually, presumably this holds true for nodereference as well.
Comment #2
yched commentedNodereference does _not_ require optionwidget.
And AFAIK, neither does userreference...
Comment #3
webchickyched: An exercise. ;)
Enable the content module, the text module, and the userreference module, but NOT the optionwidgets module. Create a new content type. Attempt to add a field. "Text" will be the only widget available. This doesn't change until you enable the optionwidgets module.
Comment #4
webchickAlso, just confirmed this to be the case in nodereference module as well.
Comment #5
yched commentedI just did what you described and I can in fact create a [node|user]reference field with optionwidgets disabled. I really don't think there's a dependency here, and I don't see why there should be one.
I noticed something strange along the way, though : after enabling or disabling a field module, I have to empty my cache in order to have the field creation page show the correct available fields.
So I suggest maybe you try and disable optionwidgets, enable [node|user]reference, _empty your cache_ and see if you get the correct fields.
If so, I guess we have found a bug...
Comment #6
webchick@yched: Yep you're right! Clearing the cache makes the fields show up. Sorry for the misdirection; I thought I tried that as a troubleshooting step but obviously not. :)
Changing title and status appropriately.
Comment #7
dodorama commentedHey! I've been the first one to found this bug :)
Comment #8
webchickOops. Apologies, didn't see it. :)
Comment #9
webchickAnd also didn't see that you marked yours a dupe. ;)
Just call me web-"extra observant"-chick! ;)
Comment #10
yched commentedIn fact, I guess the original report by dodazzi is probably clearer, and less crufted :-)
Comment #11
dodorama commentedI thought this one was clearer :)
Happy to know that sometimes my english works :)