User assistance for content authors

Importing and exporting HTML

You can import HTML and export HTML to and from presentation templates and elements that store HTML.

Procedure

  1. To import HTML with no references to images:
    1. Click Import.
    2. Select the HTML file you want to upload.
    3. Click Save.
  2. To import HTML with references to images:
    1. Click Import.
    2. Select the zip file you want to upload.
      Note: The zip file must have the following file structure:
      • A folder named images containing the referenced images.
      • A file named index.html containing the HTML markup.
      Note: Images are referenced within index.html using an img tag that has an src attribute with a relative path to the images folder. For example: <img src="images/logo.jpg" />

      Web Content Manager does not import other image reference types. For example, Web Content Manager cannot import an image referenced within a background tag. To import an image in tags other than img tags, import the image into a file resource component and then reference the file resource component within the imported HTML.

    3. Click Save.
  3. To export HTML click Export.
    1. Navigate to the directory you would like to export the HTML file to and then click OK.
      Note: No warning is given when exporting HTML to an existing file. Care should be taken not to save over existing HTML files when exporting HTML.

What to do next

Note:
  • Web Content Manager does not verify if the imported HTML or text is valid. For example, if you import HTML that contains a JavaScript error, then that error appears in your content when previewed.
  • The encoding of the current browser window determines the encoding of the imported or exported HTML. For example if the browser is currently using GB2312 for Chinese, then only GB2312 encoded HTML can be imported, and on export the exported HTML encoding is GB2312.
  • Some HTML editors save HTML with a mixture of UTF-8 and non UTF-8 encodings. You cannot successfully upload files containing a mixture of UTF-8 and non UTF-8 encodings. Save your HTML file as UTF-8 only and try importing the HTML.

Library | Support | Terms of use |

Thursday, April 24, 2014 3:00pm EST

Copyright IBM Corporation 2000, 2013.