23.1. Importing and Exporting Web Sites

When you choose File Import in SharePoint Designer, you can either import files and folders into your Web site or import Web sites that have been packaged into Web Packages by using SharePoint Designer. To import files into your Web site, follow these steps:

  1. Open your Web site in SharePoint Designer. This can be either your local Web site or a remote Web site residing on a Web server.

  2. Choose File Import File to open the Import dialog box, as shown in Figure 23.1.

    Figure 23.1. The Import dialog box
  3. To add files from your local computer to the Web site location, click Add File.

  4. Choose the files you want to import in the Add Files to Import List dialog box and then click Open. The files are displayed in the Import dialog box. You can click Add Folder to add a folder (including content) to the import list. Clicking From Site takes you to the Import Web Site Wizard.

  5. Click OK to import the files and folders into your Web site.

The files and folders you choose to import are now added to your Web site. If the files you're trying to import already exist inside the Web site, a prompt asks whether you want to replace the files.

23.1.1. Using the Import Web Site Wizard

The Import Web Site Wizard, as shown in Figure 23.2, allows you to import content from a number of Web site types into your local Web site. The FPSE or SPS, WebDAV, FTP, and File System options in the Import Web Site Wizard actually link to the Remote Web Site Publishing pane (which is discussed later in this chapter). This means that when you use these options, you're actually publishing content by using the Remote to Local option in the SharePoint Designer Publishing pane.

NOTE

It's important to understand that a local Web site in SharePoint Designer import and publishing terms is the Web site that's currently open in SharePoint Designer (using the File Open Site dialog box). So, a Web site might actually reside on a Web server but still act as a local Web site for SharePoint Designer, as it was opened directly in SharePoint Designer from the remote location. For example, if your remote Web site is open in SharePoint Designer (using FTP, WebDAV, or FPSE) and you're using the Import Site Web Wizard to import content into it from your local file system, you should see that your local file system is shown as a remote Web site location in SharePoint Designer.

Figure 23.2. The Import Web Site Wizard in SharePoint Designer

In this section, I take you through the steps for how you can use the Import Web Site Wizard to retrieve content from an HTTP site on the Internet:

  1. Open your Web site in SharePoint Designer. As discussed before, this could be a Web site that resides locally on your computer or on a remote Web server location.

  2. Choose File Import Import Site Wizard. The Import Web Site Wizard dialog box opens.

  3. Select HTTP in the How do you want to get the files? Section, and in the Web Site Location text field, type the HTTP address of the Web site from which you want to import files. If you click the Use Encrypted Connection (SSL) check box, the HTTP address changes from http:// to https://.

  4. Click Next. SharePoint Designer tries to establish a connection with the remote HTTP Internet site you specified in the previous step. If this connection succeeds, you're taken to the next wizard page, where you can choose the location inside your Web site to which you want to import the content.

  5. Click Next. The Set Import Limits page opens, where you can choose the depth, size, and type of files that you want to import.

  6. Click the Import the home page plus linked pages check box and then type the depth in levels. The level of depth here implies the depth of hyperlinks that SharePoint Designer browses to while importing files.

  7. Click Next and then click Finish to begin the Import process. SharePoint Designer starts browsing and then downloads copies of files and images that are accessible at the Internet location.

23.1.2. Creating Personal Web Packages

Personal Web Packages in SharePoint Designer provide for a means to pack up selected content inside your Web site into a package file that you can then send to another location for importing or save as a backup of your Web site. You use the Export Web Package dialog box to create a Web package for your Web site:

  1. Using SharePoint Designer, open the Web site that contains the content you want to export as a Web package.

  2. Choose File Export Personal Web Package to open the Export Web Package dialog box, as shown in Figure 23.3. The Export Web Package dialog box shows the files and folders of the Web site open in SharePoint Designer in the left list.

  3. Click Show Dependencies to enable the dependency checking section. Choose Check all dependencies in the Dependency Checking dropdown menu. Now, when you click a file in the folder list, the list of files that the selected file depends on is listed in the list box in the dependency checking section. You can decide which files to include along with the selected file to ensure that the dependencies are maintained when the Web package is imported.

    Figure 23.3. The Export Web Package dialog box
  4. Choose the files you want to export in the package and then click Add to add the files to the Web package. If you want to export the complete site, choose the topmost folder in the left list and then click Add. Clicking Properties takes you to the Web Package Properties dialog box, which allows you to specify general properties of the Web package and shows any external dependencies.

  5. Click OK to open the File Save dialog box and then save the Web package.

The Web package file has an .fwp file extension and is mostly a CAB file that contains the files you chose to export and a manifest file that stores the metadata information and dependencies about the files being exported. You can now use this Web package to import content either to an empty Web site or an existing Web site at another location. To import the Web package, choose File Import Personal Web Package to open the Import Web Package dialog box, as shown in Figure 23.4.

Simply choose the files and folders you want to import and then click Import. When the import process finishes, you should see the content from the Web package on your Web site.

Figure 23.4. The Import Web Package dialog box

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.50.156