Setting a folder path
Setting a folder path
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
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
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
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.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