I found a great post about how to add folders to xsitepro. I always wondered if you can add folders to xsitepro and in version 1 there was no allowance for adding folders to xsitepro. Now in Xsitepro Version 2 you can add folders and I’m thrilled because that gives you a little more control over your website and it’s organization. I copied the post here but you can read the original post at adding folders in Xsitepro
Create Custom Folders for Files from Your Local Folder….New Benefit from Xsitepro Version 2
I found a fellow user with an interesting problem, he needs to create some php pages that will all be in a seperate folder. Fortunately, Xsitepro version 2 allows you to create up to 5 custom folders and import files into these folders. A nice step forward for the Xsite folks.
Here’s the question:
1. I’d like to make a separate “advertisement” folder within a website, where I’m going to put several php duplicated landing pages. For SEO purpose I’d like to add this “advertisement” folder to the robots.txt file as a disallowed folder to avoid some duplicate content issues.
How can I create this folder within a given website with Xsitepro 2.0?
2. How can I create a php page with XsitePro 2.0?
I have the php code. Now I’m using Notepad to create this php file.
The drawback is that file should be uploaded separately.
Is there any possibility this file to be created with XsitePro and uploaded with other pages belonging to a website?
My Answer
You could try changing the extentsion to .php when you create the page….but I’m not sure you can get you new page in the folder you need.
I would continue to use notepad or something, and create your files, dump them into a folder on you local hardrive.
Next go to the “Other” tab and then the Resource Button.
Once in the Resource Manager…go to the bottom of the window and click on Folder Name Settings….here you have an option to put your files in existing folders or you can create a new folder….Based on what you want to do, I think you would have to create a new folder. So use one of the Custom tabs to create your new folder….it looks like version 2 gives you the ability to create up to 5 custom folders.
After you click the Resource Button, you’ll have the option to import files. A new window will pop up and there will be small button on the upper top left with a green plus called “Add”.
Click on Add and you will be able to Navigate to your local folder with your php files. Select all the php files you want to import. Hold shift and click on the files you need. Go down to Open and click on Open.
A small window will open that will allow you to choose the folder you created. Pick your folder and click on Add.
That’s it.
Remember if you update the files on your local folder, you will have to repeat this process to get the latest folders into your New Xsite Folder.
Maybe someone has an easier way, but this is better than what was available in version 1 and should do the trick for you.
At first glance you would think that you could upload your xsite website and then with a ftp program upload your folder and files. This would probably work, however, you will lose the updating, saving and exporting functionality of xsitepro. In other words, if you moved the site or backed it up or sent a copy to someone else, your new folder and files would not be in the .xsp files that are created by xsitepro…..Remember this only happens if you decide to use a ftp program to upload your folder and files….hope that makes sense.
Good luck
Scott
[tags]xsitepro version2, adding folders to xsitepro[/tags]
Recent Comments