tabs => content
Permalink
I'm busy making a new block.
I 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
I 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
this is quite easy..
You start with a page object:
don't pull the content out of the database! use the proper api functions..
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..
http://c5.tktools.jp/index.php/concrete5/tabs/
source code
http://c5.tktools.jp/index.php/concrete5/tabs/tab-2/...
source code
http://c5.tktools.jp/index.php/concrete5/tabs/tab-2/...
I'm sorry but i can't get it working that way.
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...
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(); });
Viewing 15 lines of 49 lines. View entire code block.
this is exactly what i needed.
Thank you verry much.
Thank you verry much.
Did not register can not be explained in English so I am.
for the content you would need to pull from the database