1
kevincam
How can I get only the module center block without displaying the header, footer, and side blocks
  • 2004/2/16 0:06

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


I'm using the popup to display a page and I just want to display the modules center contents without displaying anything else since this is a popup, how can I grab just the center contents. Below is a snippet of my code, part of the switch section:

case "day":
// We must always set our main template before including the header
$xoopsOption['template_main'] = 'day.html';

// Include the page header
include(XOOPS_ROOT_PATH.'/header.php');
$xoopsModuleConfig["back_to_calendar"] = FALSE;
include('day.php');
include('include/back_to_month.php');
include('include/menu_builder.php');
$xoopsTpl->assign('footer_links', $footer_links);
$xoopsTpl->assign('functions',$xoopsModuleConfig['functions']);
$xoopsTpl->assign('current_display', $current_display);
$xoopsTpl->assign('day_prev_button', $day_prev_button);
$xoopsTpl->assign('add_button', $add_button);
$xoopsTpl->assign('edit_button', $edit_button);
$xoopsTpl->assign('day_next_button', $day_next_button);
$xoopsTpl->assign('category_dropdown', $category_dropdown);
$xoopsTpl->assign('view_cat_button', $view_cat_button);
$xoopsTpl->assign('back2month', $back2month);
$xoopsTpl->assign('calendar_mini_current', $calendar_mini_current);
$xoopsTpl->assign('calendar_main', $calendar_main);

// Include the page footer
include(XOOPS_ROOT_PATH.'/footer.php');
break;


This will display the entire page with theme header, footer and any active blocks. I would like to use this same switch for when I call the popup but just want the center module data.

2
TooBaked
Re: How can I get only the module center block without displaying the header, footer, and side blocks
  • 2004/2/16 2:39

  • TooBaked

  • Just popping in

  • Posts: 37

  • Since: 2003/2/9 5


<td colspan="2" id="centerCcolumn">
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}> <{include file="your_theme_folder/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->

3
kevincam
Re: How can I get only the module center block without displaying the header, footer, and side blocks
  • 2004/2/16 4:29

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


That code is what goes in the theme right? I want to use the existing them, but turn off the header, left and right column when I use the url to the index page of a moule as the popup url.

Login

Who's Online

127 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 127


more...

Donat-O-Meter

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

Latest GitHub Commits