Hi,
I would like to implement tabs using:
http://amazon.flowplayer.org/tools/index.htmlI will be using three tabs, so I have defined 4 blocks in my template:
$block[1] = 'Main contents';
$block[2] = 'Product - panel 1';
$block[3] = 'Product - panel 2';
$block[4] = 'Product - panel 3';
My code so far:
$html ='<ul class="tabs">';
$html .='<li><a href="#">Description</a></li>';
$html .='<li><a href="#">Specification</a></li>';
$html .='<li><a href="#">Availability</a></li>';
$html .="</ul>";
$html .='<div class="panes">';
$html .="<div>".page_content(2)."</div>";
$html .="<div>".page_content(3)."</div>";
$html .="<div>".page_content(4)."</div>";
$html .="</div>";
return $html;
Problem is, the page_content is shown at the top of the <body>, and not in the assigned DIVs.
I have seen many topics covering the use of the section_id, but I would rather use the page_content() for simplicity.
Can anybody help me out?
Thank you in advance.
Regards,
Dennis
P.s. This works when hardcoding it in my template:
<ul class="tabs">
<li><a href="#">Description</a></li>
<li><a href="#">Specification</a></li>
<li><a href="#">Availability</a></li>
</ul>
<div class="panes">
<div><?php page_content(2) ?></div>
<div><?php page_content(3) ?></div>
<div><?php page_content(4) ?></div>
</div>