Loading a node into a floating window

nenad.scekic - July 23, 2009 - 16:00
Project:Floating Windows
Version:6.x-1.2-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is there a way to load node or View in window

#1

skilip - July 23, 2009 - 16:24

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.

#2

skilip - July 24, 2009 - 05:18
Title:Loading» Loading a node into a floating window

#3

jmary - August 31, 2009 - 15:42

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

#4

jmary - August 31, 2009 - 18:27

<?php
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.

 
 

Drupal is a registered trademark of Dries Buytaert.