Installation Process

Permalink Browser Info Environment
you could avoid the installation discussions here by adding the following in your controller.php install function:

$stack = Stack::getByName('hometext');
if (is_null($stack)) {
$stack = Stack::addStack('hometext');
$block_type = BlockType::getByHandle('content');
$block_data = array(
'content' => '<h1>Demo Text</h1>',
);
$stack->addBlock($block_type, STACKS_AREA_NAME, $block_data);
}
$stack = Stack::getByName('tab1');
if (is_null($stack)) {
$stack = Stack::addStack('tab1');
$block_type = BlockType::getByHandle('content');
$block_data = array(
'content' => '<em class="icon-ok"></em><span>Tab Title here</span>',
);
$stack->addBlock($block_type, STACKS_AREA_NAME, $block_data);
}
$stack = Stack::getByName('tab2');
if (is_null($stack)) {
$stack = Stack::addStack('tab2');
$block_type = BlockType::getByHandle('content');
$block_data = array(
'content' => '<em class="icon-ok"></em><span>Tab Title here</span>',
);
$stack->addBlock($block_type, STACKS_AREA_NAME, $block_data);
}
$stack = Stack::getByName('tab3');
if (is_null($stack)) {
$stack = Stack::addStack('tab3');
$block_type = BlockType::getByHandle('content');
$block_data = array(
'content' => '<em class="icon-ok"></em><span>Tab Title here</span>',
);
$stack->addBlock($block_type, STACKS_AREA_NAME, $block_data);
}
$stack = Stack::getByName('tab4');
if (is_null($stack)) {
$stack = Stack::addStack('tab4');
$block_type = BlockType::getByHandle('content');
$block_data = array(
'content' => '<em class="icon-ok"></em><span>Tab Title here</span>',
);
$stack->addBlock($block_type, STACKS_AREA_NAME, $block_data);
}

Type: Discussion
Status: In Progress
sk01
View Replies:
sk01 replied on at Permalink Reply
sk01
and / or in your home.php

$stack = Stack::getByName('hometext'); if($stack) $stack->display(); else echo "Missing Stack hometext";


etc..

concrete5 Environment Information

N/A

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.