View Full Version : change slideshow module position.

07-26-2012, 02:08 AM
i am designing a new template and i want the slideshow to be on the newly defined position on the page instead between column left column right is it possible ?

and i also want to show the slideshow on every page.

any help would be appreciated

Ovais Lakhany

04-15-2013, 10:11 AM
At last I can give someone advice instead of asking how to do things!

Add this code wherever you want the slideshow in the index page:

<!-- slideshow module starts -->
<?php // Set conditional load of showcase
<table border="0" width="100%" cellspacing="0" cellpadding="0">
$slideshow_query = tep_db_query("select slideshow_image from " . TABLE_SLIDESHOW . " where NOT find_in_set('" . $customer_group_id . "', slideshow_cg_hide) and slideshow_active = 'yes' order by slideshow_sort_order");
$slideshow = tep_db_fetch_array($slideshow_query);
$images_string = HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . 'slideshow/' . $slideshow['slideshow_image'] ;
<div style="background-image:url( <?php echo $images_string; ?>);height:<?php echo SLIDESHOW_HEIGHT;?>px;width:<?php echo SLIDESHOW_WIDTH;?>px">
<div id="slideshow"></div>
<!-- slideshow module ends -->

Configure the slideshow in the admin just as you would normally. I put it in the header on one site so it spans the entire width of the header. You can also put it in the header but narrower so that you can have links on one side.