Pinpinpin did not share how he resolved this:censored:.. While I REALLY hate to bump such an old post, I do need to bump this one. This was the only post which gave me a clue as to how I MIGHT to do this...
Here's the proposed template for the site I am working on.
http://greentieworks.com/clientele/barstore/barstore.png
On the front page we'd really like to add the news sidebox content to the home page.
I have figured out how to make the suggestion from the post referenced below to work on some of my defined pages. However, I am stumped how to add it to the main page.. and I KNOW it is something obvious that I am overlooking..
If I am right, I would add this code to the YOUR_TEMPLATE/templates/tpl_index_default.php file..
The problem is I am not quite sure where to place this, and I keep getting an error which I need help resolving before I worry about where in the file to put this code.
So here's what's happening:
I copied this code:
<?php if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/search.php') ) {
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/search.php');
} else {
require(DIR_WS_MODULES . 'sideboxes/search.php');
}
?>
```into the **YOUR_TEMPLATE/templates/tpl_index_default.php** file right around line 42 as follows:
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>
<?php if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/search.php') ) {
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/search.php');
} else {
require(DIR_WS_MODULES . 'sideboxes/search.php');
}
?>
but I get this error
> **Warning: require(includes/templates/custom_template/common/) [**[\\*\*function.require\*\*\[/COLOR\]](http://www.zen-cart.com/forum/function.require)**]: failed to open stream: No such file or directory in /home/content/o/v/e/USER_NAME/html/DOMAIN/SUB_FOLDER/includes/modules/sideboxes/search.php on line 16**
:frusty:I am almost there.. I am hoping someone can give me a nudge to get me over the finish line with this..
[COLOR=white]Including Sidebox Content on Index Page Template
Adding Sidebox Content on Index Page Template
Sidebox Content on Index Page Template
Including Sidebox Content on Main Page
Adding Sidebox Content on Main Page
Sidebox Content on Main Page
Add Sidebox to Main Page
> **pinpinpin:**
>
> I've been through many (many!) threads and posts regarding sideboxes, but I can't seem to find a solution to my problem. I've downloaded the "News Box" sidebox and it works fine. However, I need to appear in the main page and not the left/right columns. So far, I have managed to get it to appear, but it is under a generic "sideBox" class instead of its own "newsBox" class.
>
> I am using what was posted here: <http://www.zen-cart.com/forum/showthread.php?t=30940> to add the sidebox into the main page.
>
> Any suggestions?
>
> Much thanks in advance!
>
> ------------
>
> Um, I think I might have found my own answer. :)