Posted by nenad.scekic on July 23, 2009 at 4:00pm
Jump to:
| Project: | Floating Windows |
| Version: | 6.x-1.2-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Is there a way to load node or View in window
Comments
#1
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
#3
I'm interested in more details concerning that as I am trying to load a node created with webform module.
#4
<?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.