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
Description

I wanna to make a node content to be into a predefined tab. Is that possible? How?

Thank you. Nice module.

#1

drupalhizmetleri - July 18, 2008 - 05:54

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;
?>

 
 

Drupal is a registered trademark of Dries Buytaert.