How to set up a node into a tab?
xcorex - July 17, 2008 - 16:48
| Project: | YUI TabView |
| Version: | 6.x-1.0-beta1 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I wanna to make a node content to be into a predefined tab. Is that possible? How?
Thank you. Nice module.

#1
Here is a simple way to show a node as an tabview.
<?php
$nid = 3;
$node = node_load($nid);
$nodes[] = (object)array('nav' => $node->title, 'content' => $node->body);
$nodes[] = (object)array('nav' => 'Tab Two Label', 'content' => 'Tab two Content');
$nodes[] = (object)array('nav' => 'Tab Three Label', 'content' => 'Tab Three Content');
$output = build_tabview("test",$nodes);
return $output;
?>