Hi,

I try to create popup window from the link displayed in selection on node reference lookup.

Situation

1) There is a view containing node title which link to this node

2) Node reference use this view for lookup

3) How to open popup which node when using link from 1) ?

Is this at all posible ?

Best Regards
Chris

Comments

kcybulski’s picture

I have installed Popup and Views Custom Field modules, which this I can create popups from view, they work if i put them in block, but link is not working when I try use it from nedereference autocomplite.
I think problem is that when page is loaded popups javascript mark specific fields that should be popups, but nodereference is empty in this moment, and I need to proces nodereference output by javascript again.

Any suggestions are appreciated.

Chris.

kcybulski’s picture

It is hardly pretty but works for me

Place this in "Customfield: PHP code" view field

<?php
echo('<a href="'.base_path().'node/'.$data->nid.'/edit" class="popups"   onmouseover="Popups.attach(\'\',\'.popups\',Popups.options({updateMethod: \'none\'})); "> '.$data->node_title.'</a>');

?>