[support] Blocks and regions

Davide Michel 'ZioBudda' Morelli michel at ziobudda.net
Wed Feb 13 16:04:32 UTC 2008


Hi all. I have my theme ('mw') with my regions:

function mw_regions() {
        return array(
                'left'=>t('Barra di sinistra MW'),
                'right' => t('Barra di destra MW'),
                'similar' => t('Regione per i similarterms MW'),
                'header' => t('Header MW'),
                'footer' => t('Footer MW'),
                'articoli' => t('articoli')
        );
}

Now I have created a block (ultimi_articoli) with "view" module and In 
the "block admin page" I have linked this block ("ultimi_articolo") with 
my "articoli" region. And for another test I have created a new block 
via "add block" in the http://62.101.68.210:801/admin/build/block page.

But, there is always a "but", in my page I have nothing into $articoli 
variable.

I have this function (only the interesting thinks are reported:

function _phptemplate_variables($hook, $vars = array()) {
    switch($hook) {
       case 'page':
                         ....
                      dvr($vars);
       case 'block':
                         ....
       case 'node':
                         .....
  }
   
}

Why my "articoli" region is always empty ?

m.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ajaxblog.it        			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at gmail.com



More information about the support mailing list