The basic principle is here - you'll have to adjust the code to reflect the page where you want to have the box display:
http://www.zen-cart.com/content.php?...ll-other-pages
The basic principle is here - you'll have to adjust the code to reflect the page where you want to have the box display:
http://www.zen-cart.com/content.php?...ll-other-pages
I read this tutorial but I am confused. This is for the home page
In my case, I want the sideboxe to show only on one page which is not the main page or an ez page
How do I modify this statement:
if ($this_is_home_page) {
$show_featured = true;
} else {
$show_featured = false;
}
so my sideboboxe shows up on the following page: www.royal-fleur.com/florist-san-rafael-ca only
The file name for this page is SAN_RAFAEL
Any help is more than welcome
Thank you
CSS may be easier...
If you want the sidebox to be hidden on ALL pages EXCEPT one specific page, then you create a declaration in the main stylesheet that says:
#mySidebox {display:none;}
Then you create a PAGE-SPECIFIC stylesheet (for whatever page you want that sidebox on) and change the declaration to:
#mySidebox {display:block;}
Look at the stylesheet README file in the main CSS folder (probably classic/css) for instructions on creating page-specific stylesheets.
SEE IT IN ACTION (sort of)...
GRAPHIC SIDEBOX is ON
GRAPHIC SIDEBOX is OFF
20 years a Zencart User
I created a page specific stylesheet called san_rafael.css with the folowing inside of it:
/**
* Main CSS Stylesheet
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: san_rafael.css 5952 2007-03-03 06:18:46Z drbyte $
*/
#blanksidebox {display:block;}
Then I added #blanksidebox {display:none;} to stylesheet.css
When I go to the main page, the sidebox is not showing but it is not showing on the other page either
I must be missing something or did something wrong.
Could you please help me?
Thank you
I've done a lot of sidebox 'placement' on a website - maybe I can be of some use.
While I haven't needed to have a sidebox on one page only I have had a sidebox appear on all pages except one, so the code should be able to be switched.
Is your page a 'define page'? i.e. is there a folder for it in /includes/modules/pages ? if so what is its name?
One problem may be that you have some stupid URL re-writer in place...
What is your objective for using a URL re-writer... they make life more challenging than it needs to be...
20 years a Zencart User
Even if I turn off the url rewriter, it does not work.
The correct page would be http://www.royal-fleur.com/index.php...age=san_rafael
How do i modify the code for it?
I don t want to use css because i would be adding too many specific page sideboxe and it will increase my main page load time which already slow from my swf soon to be jsquery.
Thank for your help with this