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

 
Mnkras replied on at Permalink Reply
Mnkras
that is really nice!

for the content you would need to pull from the database
Remo replied on at Permalink Reply
Remo
this is quite easy..

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..
kino replied on at Permalink Reply
kino
http://c5.tktools.jp/index.php/concrete5/tabs/

source code
http://c5.tktools.jp/index.php/concrete5/tabs/tab-2/...
Furious replied on at Permalink Reply
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...
kino replied on at Permalink Reply
kino
<?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();
         });
Furious replied on at Permalink Reply
this is exactly what i needed.
Thank you verry much.
kino replied on at Permalink Reply
kino
Did not register can not be explained in English so I am.