When using nodereference explorer the Popups: Add & Reference links which comes with the nodereference fields are not available.

Comments

gnindl’s picture

Assigned: Unassigned » gnindl
Status: Active » Needs work

Due to the fact that 1.0 is still an alpha release, widget generation is far from being perfect. The buttons (Browse & Clear), the dialog and the thumbnail image preview are rendered as pure html into the generic #suffix of a widget element. As far as I understand does "Popups: Add & Reference" something similar with the reference links (see popups_reference_alter_item()). This means that the nodereference explorer widget overwrites the Popups: Add & Reference links.

The solution is to render all widget components as separate elements without rendering anything into the #suffix.

This is already on the TO-DO list for version 1.1.

gnindl’s picture

Version: 6.x-1.0 » 6.x-1.1-beta1
Status: Needs work » Fixed

In version 1.1 beta1 there should not be any intereference with this module any more as the nodereference explorer doesn't use the #prefix and #suffix any more.

Status: Fixed » Closed (fixed)

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

G Gavitt’s picture

I am still getting this behavior with nodereference explorer 6.x-1.1-beta1 and Popups: Add and Reference 6.x-2.0-alpha1 or 6.x-1.0.

When I enable the nodereference explorer widget it causes the add and reference links to disappear.

G Gavitt’s picture

Status: Closed (fixed) » Active

I also tried patching Popups: Add & Reference with http://drupal.org/node/397614 but it did not fix the issue.

G Gavitt’s picture

I have simple work around. Make two node reference fields that reference the same style of content. Set up the first one as the explorer with add+reference checked. Then set up the second one without the explorer widget and leave add+referenced checked. If you add a new node with the second field ...the node will get injected into the list of nodes on both node reference fields. Now the user could select that brand new node in either node reference field.

My next step was to simply hide the test box of the second field via the themes style.css.. EG.

/* Hide the display field */
div#edit-field-show-venuenew-0-nid-nid-wrapper {
  display: none;
}

Now the add + reference links pops up right under the first field's browse and remove button and works as expected. BTW the current alpha of add + reference does not auto populate the field. (But obviously it auto populates the list of nodes). So no data ends up in that semi hidden field.

Another BTW.. Thanks for the great module... it makes sorting through 100's of venues in all parts of the world, in a node reference.. simple.

gnindl’s picture

Version: 6.x-1.1-beta1 » 6.x-1.1-beta2
Status: Active » Fixed

Support for Popups: Add & reference has been natively built-in into the module

Status: Fixed » Closed (fixed)

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

finex’s picture

I've tried with both -dev and 1.0 version. Neither works with popup add & reference:

when I click on the "BROWSE" button inside the popup from popup add & reference, the nodereference explorer doesn't opens