Hi,

I just wonder how StackContainer and BorderContainer work compared to
AccordionContainer and TabContainer.

I have an example running with a TabContainer layout elements which
includes three ContentPane layout elements. Looks and works as expected.
I changed this example and switched to AccordionContainer and
AccordionPane and that example works as well as expected.

Then I tried to change from TabContainer to StackContainer, but this
does not work. Only the content of the first ContentPane is shown
without any design. Just black and white output. The same with
BorderContainer but this time it shows the content of all ContentPane
without any design.

Do StackContainer and BorderContainer really do work different than
AccordionContainer and TabContainer? And if yes, how do they work?

Here is my example.

-----------------------------------------------------------------
<? $this->borderContainer()->captureStart('container'); ?>

<? $this->contentPane()->captureStart(
        'pizza1', array(), array('title' => 'Pizza 1')
); ?>
    <h1>Pizza 1</h1>
    <p>Pizza 1 description.</p>
<?= $this->contentPane()->captureEnd('pizza1');?>

<? $this->contentPane()->captureStart(
        'pizza2', array(), array('title' => 'Pizza 2')
); ?>
    <h1>Pizza 2</h1>
    <p>Pizza 2 description.</p>
<?= $this->contentPane()->captureEnd('pizza2'); ?>

<? $this->contentPane()->captureStart(
        'pizza3', array(), array('title' => 'Pizza 3')
); ?>
    <h1>Pizza 3</h1>
    <p>Pizza 3 description</p>
<?= $this->contentPane()->captureEnd('pizza3'); ?>

<?= $this->borderContainer()->captureEnd('container'); ?>
-----------------------------------------------------------------

To test this, just change the borderContainer() calls to tabContainer()

Thanks and best regards,

Ralf

Reply via email to