Closed (fixed)
Project:
Nodereference Explorer
Version:
6.x-1.1-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jun 2009 at 17:41 UTC
Updated:
23 Nov 2009 at 14:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
vood002 commentedThanks for posting this, I didnt see this covered in any documentation and without it no worky.
Comment #2
beauz commentedYep I can confirm this problem, hopefully see a fix soon.
Comment #3
gnindl commentedNode id can now be excluded from the display but it has to be provided as a view field. When the Node id is not included in the display the node id will be retrieved from the view result.
Comment #4
gnindl commentedCheck out the current development snapshot for testing.
Comment #5
gnindl commentedComment #7
les limThe statement in #3 is correct for Table and Grid views. In List view, however, excluding the NID from display still prevents the autocomplete field from receiving the NID.
Comment #8
rjbrown99 commentedI also have a small issue with this.
Scenario #1:
1) A 'default' view with basic settings that mirror the nodereference_explorer_default view, with the Style: Table (Selectable). The Node: NID field is excluded from the display.
2) A 'Grid' view with basic settings that mirror the nodereference_explorer_default view, with the Style: Grid, and Row Style: Fields (Selectable). The Node: NID field is excluded from the display.
This works as you might think, and allows you to properly select your fields/items. It returns the correct [nid:123] into the autocomplete box.
Scenario #2:
1) A 'default' view with basic settings of Style: Grid, and Row Style: Fields (Selectable). The Node: NID is excluded from the display.
2) A 'Grid' view with basic settings of Style: Grid, and Row Style: Fields (Selectable). The Node: NID is excluded from the display.
In this case, it does not return the correct autocomplete - you just get [nid:] returned. If you change the Node:NID field in this scenario to not be excluded, the [nid:123] is correctly populated.
What I am getting at is if your view 'Defaults' is set to Grid and your Node:NID is excluded from display, the [nid:123] is not returned correctly to the autocomplete box.
Comment #9
abaddon commentedthe title field cant be hidden either, some might want this to create another "title" field from several CCK fields, this fixes it
Comment #10
gnindl commentedThe $vars['row'] variable in the field (selectable) preprocess function has information about ALL fields, including the excluded from display.
The patch from #9 is here included as well.
Comment #11
gnindl commentedSorry guys patch from #10 is buggy, got the condtionals wrong. Patch #10 should be considered as obsolete.
Here is the right one for solving #10.