Re: [phpslash-users] Blocks on all pages
Brought to you by:
joestewart,
nhruby
From: Peter C. <li...@kr...> - 2003-03-16 19:32:24
|
Hi Lars I the code should already have this ability. The problem may be to do with how you identify which section the page is on. There should be a bit of code in the page that looks like this: if ((empty($ary['section'])) AND (empty($ary['section_id']))){ $section = $_PSL['site_homesection']; if(!$section) { $section = "Home"; } $ary['section'] = $section; } else { $pagetitle .= $ary['section']; } If your site's in norwegian, maybe your home section isnt called 'Home', which might confuse things. Also check in config.ini.php that site_homesection is valid for your setup. HTH - if not, do your versions of glossary.php etc contain code looks a bit like this: $leftblocks = $block->getBlocks($ary, "left"); $centerblocks = $block->getBlocks($ary, "center"); $rightblocks = $block->getBlocks($ary, "right"); if (empty($leftblocks)) { if (empty($rightblocks)) { // $centerblocks = $block->getBlocks($ary); $tplfile = "index1col.tpl"; } else { $tplfile = 'index2colright.tpl'; } } elseif (empty($rightblocks)) { $tplfile = 'index2colleft.tpl'; } else { $tplfile = 'index3col.tpl'; } Peter At 23:47 16/03/03 +1000, Lars wrote: >Hi again! > >Finally my new pages are starting to look finished and I will be ready for the final migration from .65 to .7. One thing I need to fix first is to be able to show blocks on *all* pages. At the moment there are several pages that don't show them - like glossary and search. Is there any easy way to get them to show here ? Any keyword to use in the block code or code to change in the php/class files ? > >Thanks! > >Cheers, > >Lars > > > > >------------------------------------------------------- >This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en >_______________________________________________ >phpslash-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/phpslash-users |