It seems that the context admin page "Create Node with auto node reference" is unable to find node reference fields that are hidden on the display settings. I'm not 100% sure this is classified as a bug, but it is definately surprising. :-)

To reproduce:
* Add a node reference field from basic page nodes to articles.
* Hide the field in the display field settings.
* Create a new custom page with contextual aministration, on (say) node/%article/add-page, with the page type "Create Node with auto node reference"
-> You'll get an error message saying that no reference fields are set up on the site, and you can't see the node ref field you just configured.

Awesome module. I'm happy that I can contribute somewhat by finding an edge case bug. (It forced me to re-record screencast 9 in the Learn Page manager series!)

Comments

eclipsegc’s picture

INTERESTING!

Ok, I'll try to take a look at it soonish. Were you actually using dev or rc1? dev has a lot of improvements, I'm actually doing context_admin videos myself right now http://www.youtube.com/view_play_list?p=EFD8FDE69D61DCA3 and fixing any bugs I find and putting them in dev. Will release an rc2 after the video series.

Let me know, just wanting a double check.

Eclipse

itangalo’s picture

Yep, just double checked – it is dev.

I was actually using a node reference field from a new content type 'Fact box', so the steps-to-reproduce above are technically speaking untested. If you for some reason can't reproduce, try creating a new content type instead. (Sorry for cheating in the report.)

Woa – here's another idea:
I had removed the teaser view mode for the fact box, and set the noderef field to hidden. Maybe that affected something. (Man, I should learn to write better bug reports.)

Edit: There. I tested it for references from basic pages to articles. It words just as described in the steps-to-reproduce above. Good. (Lesson learned.)

icosa’s picture

I struck the same problem. You must have been following Johan Falk's excellent tutorial. :)

http://nodeone.se/blogg/learn-page-manager-part-9-contextual-administration

Edit: I just noticed that you ARE Johan. :) Your screencasts are absolutely wonderful. Thanks!

Thanks to EclipseGc too.

eclipsegc’s picture

Assigned: Unassigned » eclipsegc
Status: Active » Fixed

Just pushed code that fixes this, should be in the next dev release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.