CityDesk 2.0-Documentation
Importing Web PagesThere are three commands on the Insert menu which are useful when importing an existing web site:
Insert » Import Web Page from Internet downloads a web page from the Internet. Insert » Import Web Page from Disk imports a web page from a file on disk. Insert » Import Folder from Disk imports an entire disk folder "wholesale" into CityDesk, including any subfolders.These commands differ in the way they treat embedded pictures:
Import Web Page from Internet/Disk is used to import a single HTML file. With these two commands, if you choose to import pictures, CityDesk finds the pictures, no matter where they are, and imports them into your site. Then CityDesk adjusts the links in the source file to point to the pictures in CityDesk. Import Folder from Disk is used to import a bunch of files as-is. With this command, if any imported HTML files have embedded pictures, those pictures will only be imported if they happen to be in the same folder. CityDesk will not adjust the links in the source file in any way.Here's a quick example to illustrate the difference. If you have a folder named MyFolder containing index.html and picture.gif, where index.html contains the code <IMG SRC="picture.gif">, then if you:
Import Web Page from Disk and point to index.html: both files will be imported, and the link to picture.gif will be changed to an internal CityDesk magic name starting with the word PTMFOG. The magic names are replaced with the real names when you publish. Import Folder from Disk and point to MyFolder: both files will be imported, but the link to picture.gif will remain unchanged. Since this is not a CityDesk magic name, CityDesk will show the image as a broken link in the editor and will not be able to adjust the reference if the image is moved or renamed. But since the image is published as part of the site, the published site will actually look fine.To Import A Web Page From The Internet:
In the main window, select the folder where you want the imported web page to appear.
Choose Insert » Import Web Page from Internet.
In the Address or File Name edit box, type the complete URL of the site that you want to import, for example, http://www.fogcreek.com
Press Enter or click Preview to see what the page looks like.
CityDesk will fetch the web page and display it.
If you want to import a different page from that site, you can click on links in the miniature web browser which appears.
When the site is ready, the word Done will appear beneath the web page.
If you want to import the HTML page alone, choose the Import HTML only radio button. If you want to import the HTML page and all the pictures contained within it, choose the Import HTML and pictures radio button.
Click Import. CityDesk will insert the HTML page into your web site. If the original filename can't be found, CityDesk uses a name like ImportedWebPage.html.
Rename the web page if you want.
If you imported the pictures, CityDesk will download those into a new folder named Pictures. You can rename this, too. CityDesk will also adjust the HTML of the imported web page to point to the pictures that it downloaded, instead of the original pictures on the web.
To Import A Web Page From Disk:
In the main window, select the folder where you want the imported web page to appear.
Choose Insert » Import Web Page from Disk.
Choose the HTML file which you want to import and click Open.
CityDesk will fetch the web page and display it.
If you want to import the HTML page alone, choose the Import HTML only radio button. If you want to import the HTML page and all the pictures contained within it, choose the Import HTML and pictures radio button.
Click Import. CityDesk will insert the HTML page into your web site. If the original file named can't be found, CityDesk uses a name like ImportedWebPage.html.
Rename the web page if you want.
If you imported the pictures, CityDesk will download those into a new folder named Pictures. You can rename this, too. CityDesk will also adjust the HTML of the imported web page to point to the pictures that it downloaded, instead of the original pictures on the web.
To Import An Entire Folder From Disk:
In the main window, select the folder where you want the imported folder or files to appear.
Choose Insert » Import Folder from Disk.
Choose the folder which you want to import and click OK.
©Copyright 2001-2003 Fog Creek Software, Inc. All Rights Reserved.