Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / adding new centerboxes?

adding new centerboxes?

Locked

Views: 861

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
7 Jul 2010, 6:12 PM
#1
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

adding new centerboxes?

has any one done this? i'd like to add a new center box that has content from an ezpage etc. that will be located on the main page front end i seen this mod in the add on section.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1562

but i don't want a column layout i just want to add a new center box to my existing layout and by able to move it up or down through my tpl_main page file

26 Jul 2010, 3:58 PM
#2
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: adding new centerboxes?

OK i think i have to tackle my tpl_index_default.php file

and i assume ths is the area of code to have the define_main_page.php text on the main page

<?php
/**
 * get the Define Main Page Text
 */
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>

now what would i need to change to have define_page_2.php on the main page as well i'm sure i'm on the right track but i could be wrong

nope i was wrong i removed that bit of code and my front page still had the define_main_page.php content on it :(

26 Jul 2010, 4:14 PM
#3
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: adding new centerboxes?

ok now i found the code that seams to control the define_main_page.php text on the main page

<div id="indexCategoriesMainContent" class="content"><?php
/**
 * require the html_define for the index/categories page
 */
  include($define_page);
?></div>

now i need to clone/create a peice of code that will let me have define_page_2.php on the main page

anyone have any ideas as i have no clue what i'm doing here

26 Jul 2010, 4:25 PM
#4
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: adding new centerboxes?

or do i need to play with this piece of code here aswell

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> 

that is on both files

MYSTORE/includes/templates/MYTEMPLATE/templates/tpl_index_categories.php
MYSTORE/includes/templates/MYTEMPLATE/templates/tpl_index_default.php

26 Jul 2010, 4:38 PM
#5
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: adding new centerboxes?

ok i changed the above code to the code below on both files but there was no change to the main page weird

<?php if (DEFINE_PAGE_2_STATUS >= 1 and DEFINE_PAGE_2_STATUS <= 2) { ?>
11 Aug 2010, 8:15 PM
#6
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: adding new centerboxes?

anyone have an idea