Guest Posted September 19, 2005 Posted September 19, 2005 I've installed oscommerce under /catalog/ directory I am using STS template sytem I don't want my site homepage under catalog directory, i want it at the site root directory How can I setup my homepage to use a different STS template? How do you setup a second STS template that you only want the homepage to utilize? Cant seem to find any info on how to do this... Even if I set my homepage to use /catalog/index.php i still cant use the STS template that I setup cause that template layout is different then how i want to layout the homepage. Where there is a problem there is a solution?? Is there anyway of using the /catalog/index.php file but turning off STS just for that one page? Stuck... :'(
Guest Posted September 19, 2005 Posted September 19, 2005 I've installed oscommerce under /catalog/ directory I am using STS template sytem I don't want my site homepage under catalog directory, i want it at the site root directory How can I setup my homepage to use a different STS template? How do you setup a second STS template that you only want the homepage to utilize? Cant seem to find any info on how to do this... Even if I set my homepage to use /catalog/index.php i still cant use the STS template that I setup cause that template layout is different then how i want to layout the homepage. Where there is a problem there is a solution?? Is there anyway of using the /catalog/index.php file but turning off STS just for that one page? Stuck...? :'( <{POST_SNAPBACK}> You need to setup another template file as in the instructions. Create a folder in includes called sts_templates Then create a file called index.php.html with the layout as required. however note that when you do this any pages which use index.php as their base will use this template too! So in order to sort that you will have to create a template file for each category, to do this create a copy of the file you already have in (Sts_template.html) in the new folder, and rename to index.php_xx_yy_zz.html where xx,yy,zz are the category numbers...
Guest Posted September 19, 2005 Posted September 19, 2005 Thanks, I will give that a try. Does the homepage have to be under /catalog/ or can it be at my site root for this to work? You need to setup another template file as in the instructions. Create a folder in includes called sts_templates Then create a file called index.php.html with the layout as required. however note that when you do this any pages which use index.php as their base will use this template too! So in order to sort that you will have to create a template file for each category, to do this create a copy of the file you already have in (Sts_template.html) in the new folder, and rename to index.php_xx_yy_zz.html where xx,yy,zz are the category numbers... <{POST_SNAPBACK}>
Guest Posted September 19, 2005 Posted September 19, 2005 Thanks, I will give that a try. Does the homepage have to be under /catalog/ or can it be at my site root for this to work? <{POST_SNAPBACK}> As far as I am aware it should work, well as long as it works currently. If you are changing to the main domain, as long as you make everything else STS will be fine.
Guest Posted September 19, 2005 Posted September 19, 2005 Let me get this straight. If I have 6 catagories numbered 1 through 6 then the pages will be what? index.php_01.html index.php_02.html index.php_03.html index.php_04.html index.php_05.html index.php_06.html Is this wrong? I've no clue.... How would you setup for subcategories as well??? Right now when i link to my products listing i use /catalog/?cPath=xx You need to setup another template file as in the instructions. Create a folder in includes called sts_templates Then create a file called index.php.html with the layout as required. however note that when you do this any pages which use index.php as their base will use this template too! So in order to sort that you will have to create a template file for each category, to do this create a copy of the file you already have in (Sts_template.html) in the new folder, and rename to index.php_xx_yy_zz.html where xx,yy,zz are the category numbers... <{POST_SNAPBACK}>
Guest Posted September 20, 2005 Posted September 20, 2005 Let me get this straight. If I have 6 catagories numbered 1 through 6 then the pages will be what? index.php_01.html index.php_02.html index.php_03.html index.php_04.html index.php_05.html index.php_06.html Is this wrong? I've no clue.... How would you setup for subcategories as well??? Right now when i link to my products listing i use /catalog/?cPath=xx <{POST_SNAPBACK}> Yes you are right for sub categories you then add: index.php_06_09_12.html
Guest Posted September 21, 2005 Posted September 21, 2005 I created the template /sts_templates/index.php.html however it is not working for all index pages. The index pages are still using the sts_template.html file. What am I doing wrong? Yes you are right for sub categories you then add: index.php_06_09_12.html <{POST_SNAPBACK}>
Guest Posted September 21, 2005 Posted September 21, 2005 I created the template /sts_templates/index.php.html however it is not working for all index pages. The index pages are still using the sts_template.html file. What am I doing wrong? <{POST_SNAPBACK}> definitely in catalog/includes/sts_templates? if yes you may have to post configure with db info missing
Guest Posted September 21, 2005 Posted September 21, 2005 I'm using a different home page template than the rest of the catalog pages. I located the index template in the sts_template folder and then I created a different folder to include the home stylesheet and images. I reference the homepage layout elements in the index.php.html file, which refers to the homepage folder instead of the general sitepage folder. Make sense?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.