Add HTML files to the portal

 

+

Search Tips   |   Advanced Search

 

We can display static HTML files in the portal by means of the file server portlet (FileServer). In order to modify this portlet to point to the HTML file, take the following steps:

  1. Go to...

    Administration | Portlet Management | Portlets

  2. Find the FileServer portlet. You may do this by browsing the list of available portlets, or by using the Search feature, with "Title starts with" set to "FileServer".

  3. Select the Configure option for the FileServer portlet.

  4. On the configuration page, you will see a section entitled Parameters and Values. You may add the chosen URL to this list by entering "url" in the New parameter box and the URL in the New value box.

  5. if the "url" parameter is already in this list, you may remove it by using "Delete parameter."

  6. If you wish to change the title of the portlet (the default is "FileServer"), select I want to set titles and descriptions. On the following page, select Edit next to the language-specific title you wish to modify, make the changes, then select OK.

  7. Select OK to save changes.

  8. In order to place the portlet on a page:

    1. Return to Home;

    2. Select the page where you wish to deploy this portlet;

    3. Select Edit Page (under Administration);

    4. Select Add Portlet under the column where you wish to see the file server portlet added;

    5. Select the portlet from the given list; and

    6. Select OK.

Our HTML content can be local (relative path) or remote (absolute path). To use the relative path, place the HTML file in the WAR file directory associated with the portlet. For example,...

FileServer.WAR/FileServerPortlet/html/test.html

You will find the portlet's directory under...

portal_server_root/installedApps

The path for the example above would be...

/FileServerPortlet/html/test.html

The "url" configuration parameter is applied globally to the file server portlet wherever it is placed in the portal (on any page). If you wish to invoke more than one file server portlet on a single page (in order to display the content of more than one static HTML file), first copy or clone the portlet using...

Administration | Portlet Management | Portlets

There you may select the portlet from the given list and select the Copy icon.

 

Related information

 

Parent topic:

Using portlet templates