Why there's notthing to edit in my "Page Type" ?

Permalink
I'm trying to use the stacks, but it's not working since when I edit my template in "Page Style", there's nothing to edit ? (No field I can click to add the stack).

I have some place to edit when I edit the page, but no the page style.

I have code included in the template that look like this :
<?php $a = new Area('Domain Search'); $a->display($c); ?>


Scrapbook were working fine using (But they are not updating when I change them) :
<?php
$block = Block::getByName('domain search'); 
if( is_object($block) ) $block->display();
?>


Got an idea? Or way to integrate it like the Scrapbook?

nka
 
nka replied on at Permalink Reply
nka
Oh fixed.

<?php 
            //$block = Block::getByName('copyright'); 
            //if( is_object($block) ) $block->display();
            $stack = Stack::getByName('copyright');
            $p = new Permissions($stack);
            if ($p->canRead()) {
            $blocks = $stack->getBlocks();
               foreach($blocks as $b) {
               $bp = new Permissions($b);
                  if ($bp->canRead()) {
                  $btc = $b->getInstance();
                     if('Controller' != get_class($btc)){
                     $btc->outputAutoHeaderItems();
                     }
                  $btc->runTask('on_page_view', array($view));
Mnkras replied on at Permalink Reply
Mnkras
I believe you can do

<?php $a = new GlobalArea('Domain Search'); $a->display($c); ?>