Setting a folder path

General ShopSite user discussion
Post Reply
stitches
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York
Contact:

Setting a folder path

Post by stitches »

My site is set up in folders for each different department. I wanted to try my hand at custom templates but I can't figure out how to set the path for the page to go into a folder rather than the root
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

This is not done in the template. Each Page (and More Info Page, for products) has a File Name setting. If you include the directory name (must be a subdirectory of the main output directory) in this setting, then ShopSite will publish the page to that directory (must already be created, ShopSite won't create the directory).

So if normally your ShopSite-generated pages are at:

http://www.mydomain.com/

and you want to put a particular page in:

http://www.mydomain.com/sub1/

Then in that page's File Name field you would put:

sub1/mypagefilename.html

Assuming that the sub1 directory already exists and has writable permissions, then the resulting URL to your page after it is published would be:

http://www.mydomain.com/sub1/mypagefilename.html

-Loren
stitches
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York
Contact:

Post by stitches »

The folders are there in my site on the server and I didn't try doing it with a template. I typed the path into the box when editing a page. So I am even more confused now then I was before.
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

Then perhaps your directories don't have the correct file permissions to be written into by ShopSite (which is running as whatever user the webserver is running as). Try setting full 777 permissions on those folders, or ask your host to do it for you if you don't know how.

-Loren
stitches
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York
Contact:

Post by stitches »

loren_d_c wrote:Then perhaps your directories don't have the correct file permissions to be written into by ShopSite (which is running as whatever user the webserver is running as). Try setting full 777 permissions on those folders, or ask your host to do it for you if you don't know how.

-Loren
Yes, the permissions have to be changed..I wrote to Lexiconn Support and they are doing that now. Thanks, I'll let you know how it goes.
Post Reply