Setting a folder path

General ShopSite user discussion

Setting a folder path

Postby stitches » Thu Apr 12, 2007 8:19 am

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
stitches
 
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York

Postby loren_d_c » Thu Apr 12, 2007 9:25 am

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
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby stitches » Thu Apr 12, 2007 9:33 am

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.
stitches
 
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York

Postby loren_d_c » Thu Apr 12, 2007 9:44 am

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
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby stitches » Thu Apr 12, 2007 9:58 am

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.
stitches
 
Posts: 27
Joined: Mon Sep 04, 2006 12:58 pm
Location: New York


Return to User Forum

Who is online

Users browsing this forum: No registered users and 152 guests