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

Thank you. Nice module.

Comments

bakyildiz’s picture

Here is a simple way to show a node as an tabview.

  $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;
hexag’s picture

hey,

probably slightly dumb question, but how would i do this with the yuitab filter (simple html) setup?

cheers,

nick,

hexag’s picture

scrap that, i grabbed my balls and figured it out properly, sorry, thank you, laugh ;)

nick,

bakyildiz’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.