Zen Cart Logo
Forums / Basic Configuration / insert individual side box code where I want it

insert individual side box code where I want it

Locked

Views: 1,297

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 May 2009, 9:22 PM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

insert individual side box code where I want it

I am working with a template that I need to create custom backgrounds for some side box’s, So I was hoping I could find the individual side box code to insert where I want it, for instance the categories in it’s own table, then under that it will still bring up the defined side box’s.
I think this is possible as the column_left.php would have the ability to show defined side box’s, I just need to find code to force displaying a particular side box.

I will work on it now but any suggestions will help.

28 May 2009, 9:40 PM
#2
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: insert individual side box code where I want it

Now trying to find out how to incert <?php require(DIR_WS_MODULES . 'sideboxes/categories.php'); ?>
following this http://www.zen-cart.com/forum/showthread.php?t=94780

28 May 2009, 9:50 PM
#3
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: insert individual side box code where I want it

I seem to be able to insert it in the right column without doing anything special, but does not work when I do the same thing with the left column... ?

template main php:

<td id="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">

<?php require(DIR_WS_MODULES . 'sideboxes/categories.php'); ?>

<?php /** * prepares and displays right column sideboxes * */ ?>
28 May 2009, 10:04 PM
#4
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: insert individual side box code where I want it

I should have put this in the first post "each side box background needs to be different". Perhaps someone can suggest a way to do that with css.

28 May 2009, 10:05 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: insert individual side box code where I want it

vandiermen:

I should have put this in the first post "each side back background needs to be different"
You can do that with the stylesheet. Simply set the desired background for the id associated with the box you want to change.