1
comstock
Eliminating columns from custom pages
  • 2008/8/24 16:49

  • comstock

  • Just popping in

  • Posts: 6

  • Since: 2008/8/21


I'm happily creating my own pages (and simple modules) to display html content.

Is there a method tht I can use to supress the display of a column (the left one). My reason is that I have several custom html pages that display just fine in my fixed width site *but* I have a few pages that contain imnages that are too wide if I show the column.

include("path/to/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
here is some code that says that the left column should NOT be shown
?>

HERE IS MY CONTENT
include(XOOPS_ROOT_PATH."/footer.php");
?>


TIA,
-Joe

2
trabis
Re: Eliminating columns from custom pages
  • 2008/8/24 18:57

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi again comstock!

Let us use your previous example from the other post:

include("mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");

$meta_keywords "test, page, meta";
$meta_description "test page meta";
$pagetitle "page title";

if(isset(
$xoTheme) && is_object($xoTheme)) {
    
$xoTheme->addMeta'meta''keywords'$meta_keywords);
    
$xoTheme->addMeta'meta''description'$meta_description);
} else {    
// Compatibility for old XOOPS versions
    
$xoopsTpl->assign('xoops_meta_keywords'$meta_keywords);
    
$xoopsTpl->assign('xoops_meta_description'$meta_description);
}

$xoopsTpl->assign('xoops_pagetitle'$pagetitle);

$xoopsTpl->assign'xoops_showlblock'0); //hide left blocks, set to 1 or remove this line to display them
$xoopsTpl->assign'xoops_showrblock'0); //hide right blocks
$xoopsTpl->assign'xoops_showcblock'0); //hide center blocks
?>

HERE IS MY HTML CONTENT

include(XOOPS_ROOT_PATH."/footer.php");
?>

3
comstock
Re: Eliminating columns from custom pages
  • 2008/8/24 21:53

  • comstock

  • Just popping in

  • Posts: 6

  • Since: 2008/8/21


Thanks for the info. I spent a couple hours trying to figure out why it didn't work :(
I seems that a number of themes are missing the line:

<{if $xoops_showlblock}>

All is well now. Thanks very much :)

Login

Who's Online

423 user(s) are online (61 user(s) are browsing Support Forums)


Members: 0


Guests: 423


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits