tabs => content
PermalinkI want to get the content from different pages into tabs.
Here you can see the tabs.
At this moment the description of the page comes into the tabs. But i want the content of those pages.
Is that possible?
http://dtddesign.be/Berluc/index.php?cID=58...
This is based on the pagelist block.
grtz
You start with a page object:
$blocks = $c->getBlocks("area"); foreach($blocks as $b) { if ($b->getBlockTypeHandle() == 'content') { .. extract content block content
don't pull the content out of the database! use the proper api functions..
source code
http://c5.tktools.jp/index.php/concrete5/tabs/tab-2/...
Can you help me out a bit more?
About the post above.
It looks like you had the same idea.
But you use the description, i want to use the content...
And why don't you add it to the marketplace?
you would help a lot of people...
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $textHelper = Loader::helper("text"); if (count($cArray) > 0) { $u = new User(); if(!$u->isSuperUser()){ ?> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script> <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#tabs").tabs(); });
Thank you verry much.
for the content you would need to pull from the database