Is there a way to load node or View in window

Comments

skilip’s picture

Sure thing. Just create a callback function in one of your modules and return for example node_view(). The function will pass the url of the clicked link as an argument. In the floating window's configuration, insert the name of your callback function into the 'Form id or content function' input field.

skilip’s picture

Title: Loading » Loading a node into a floating window
jmary’s picture

I'm interested in more details concerning that as I am trying to load a node created with webform module.

jmary’s picture

function float_window_golf() {
if (i18n_get_lang() == 'en') {
	$output = node_view(node_load(418),FALSE,TRUE,TRUE);
	}
	
//$output = webform_client_form(array(),node_load(415),'',TRUE);
	//$output = node_load(415);
	//$output = webform_client_form_load(node_load(415));
	return $output;
}

This does the job for a normal node but not if the node is a webform type whatever is the state of the box to call drupal_get_form()
If the node if a webform type, the first commented line must be used and the box to call drupal_get_form checked but we lose the description.