+

Search Tips   |   Advanced Search

Portal Scripting Interface for static pages


Include a static page in the portal

To include a static page in the portal...

Example:

This creates a static page underneath the currently selected content node for the html markup with the page title MyStaticPageTitle. The content of the page is read from the file...

...and the entry point for the page display is read from the file index.html, which needs to be contained in the compressed file. To specify the display method, we can use the optional parameter displayoption. It takes one of the values inline, iframe, or ajaxDefault is inline. To make the newly created static page the currently selected content node, use the optional parameter select


Get the static page content as a compressed file

To get a static page content in the format of a compressed file...

Example:

This writes the content of the specified static page to the compressed file c:/tmp/MyStaticContentPage.zip.


Set the static page content by specifying a compressed filename

To set the static page content by specifying a compressed filename...

Example:

This updates the specified static page content with the content of the compressed file c:/tmp/NewStaticContentPage.zip. The entry point for the page display is read from the file index.html. This file needs to be contained in the compressed file.


Get attributes of a static page

To get attributes of a static page...

Valid attributes are as follows:

Example:

Returns the filename of the entry point for the page displaythat is index.html for the specified markup.


Set attributes of a static page

To set attributes for a static page...

Valid attributes are as follows:

Example 1:

This sets the entry point for the page display to anotherindex.html for the specified markup.

Example 2:

This sets the display option to iframe for the specified markup. Valid display option settings are inline, iframe, and ajax.


Delete a static page

The command for deleting a static page is the same as for deleting a standard portal page.

To delete a static page...

Example:


Parent: Including static content pages in the portal
Related:
Work with the Portal Scripting Interface
Related:
Create a static page
Update a static page
Lock and unlock static page content
Use xmlaccess.sh to work with static pages