Preview / Mapping

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Hakkan
Posts: 4
Joined: Wed Nov 29, 2006 11:48 am

Preview / Mapping

Post by Hakkan »

Hi,

Sorry for my English first.

I have a problem with preview in WeBuilder. I edit my files with ftp. But when i try to preview my files, I can't get it done.

My mapping options like this.

Local or FTP Path => FTP::mysite.com\/www|
Web Server Path => http://www.mysite.com/

My root folder is "www". When I try to preview a file in root folder there is no problem. For example: When i preview "abc.php" in root folder, i can see the page like "http://www.mysite.com/abc.php". But the problem is when i try to preview another file in any subdirectory, it doesn't work. All i can see is my php codes in a temporary file in my computer.

I mapped the root folder but do i have to map all the subdirectories in server to preview my files correctly? Because it's a lot of work.

Thank you
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

It should work with subdirectories as well, BUT you must SAVE the file every time to FTP, I have no idea how do you manage to get temp files in this case? Where are they located?
Karlis Blumentals
Blumentals Software
www.blumentals.net
Hakkan
Posts: 4
Joined: Wed Nov 29, 2006 11:48 am

Post by Hakkan »

When i try to preview example.php in /www folder which is my root folder. It works ok and i can see the page the way it should be. it opens like http://www.mysite.com/example.php. But when i try to preview same file in a subdirectory it won't work. I located the second file in tmp folder. Its location is /www/tmp. This time all i get a temp folder like "C:\Documents and Settings\Hakan Guner\Local Settings\Temp\prev3~.php". Both files is saved before i try to preview.
Hakkan
Posts: 4
Joined: Wed Nov 29, 2006 11:48 am

Post by Hakkan »

I took the screenshots of my mapping settings and results of both my preview.

Here is screenshots.

This is my mapping settings.
Image

This file is located in my root folder(/www) and it works ok.
Image

This file is located in a subdirectory(/www/tmp) and all i can get is a local temp file as a preview.
Image
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I did test this and it appears that you have to create a new mapping for every subdirectory.

In the next release we will make it work for subdirectories automatically.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply