+

Search Tips   |   Advanced Search

Create a static page


Overview

First create an HTML file on your local computer. The static HTML file can contain references to portlets and other resources, such as Cascading Style Sheets or images. To use portal frameworks such as Live Text with the static page, include the static page as part of a dynamic portal page.


Create a page based on the HTML

  1. Click...

      Administration Portal User Interface | Manage Pages | Click Content Root | your_section | New Page

  2. Enter the page title.

  3. Click the plus sign next to Type of Page to expand that section.

  4. Click the drop-down menu and select Static Content.

  5. Click Set page layout properties.

  6. Select the type of markup used in the file that is the source for the new page:

    • HTML: standard HTML markup and layout.

  7. In the Static Page Layout File field, enter the file name of the unlocalized markup file that defines the layout of the static content page. For example, this can be index.html.

  8. Next, to the compressed or HTML File Location field, click the Browse button, or type a file path.

    • File path

      Enter the full path to the file used to create the new page. This can be an archive or compressed file bundled with the localized markup files and related files, such as image files (GIF, JPG) or CSS files, or it can be a single localized markup file.

    • Browse

      Use the file selection window to go to the archive or compressed file, or HTML file, containing the content used to create the page. In addition to the HTML file specified as the Static Page Layout File, the archive or compressed file can contain other supporting files referenced by the HTML, such as graphics (GIF, JPG) or a style sheet to format the HTML content (CSS).

    Compressed files that we use as static page layout files have a size limitation of 1 megabyte (1 MB).

  9. For the portlet window display option, we can choose Included Markup, AJAX, or IFrame. For Included Markup and IFrame, the portal handles portlet window rendering, and no extra scripts are required. However, for AJAX, as a portlet developer we need to write JavaScript code to use the portlet-window-url to display the portlet window.

  10. If all the HTML markup needed to create the page is available in the HTML file, and any supporting files are in the archive or compressed file, then we can accept the default value of Included Markup for the setting Portlet window display option. If the HTML source references AJAX scripts, or includes iFrame code, then click the drop-down menu and select AJAX or iFrame.

  11. Click OK to create the new page.


Create a page for a specific language locale

A page can be rendered from an HTML source that has content in a language other than English. Upload the language locales files as part of an archive or compressed file and refer to a default locale file. For example, if the file path is index.html, update the archive or compressed file or HTML file location for multiplefiles.zip so the structure of multiplefiles.zip is:

  • index.html
  • index_de.html
  • index_fr.html

To set the correct language locale for the portal page, change the file name to reflect the locale. For example, the letters de represent German, so the name of the HTML source file for a German page is index_de.html. When we view the rendered page, the browser must be set to the correct locale.


Parent Create a portal page from an HTML file