Dynamic page metadata
HTML defines some elements that refer to information managed as page metadata on portal pages. We can use the dynamic page metadata rewriting feature to place this information into the static HTML code automatically. The dynamic page metadata rewriting feature affects the HTML tags <base>, <title>, and <meta>.
Enable rewriting for each of these tags by modifying the following page metadata:
spa.ex.base.enabled true spa.ex.title.enabled true spa.ex.meta.enabled true If set to true, the following rewrites occur:
spa.ex.base.enabled The href attribute of the <base> tag is replaced by the base URL to the current page. spa.ex.title.enabled The text value of the <title> tag is replaced by the page title that is using the currently requested location. spa.ex.meta.enabled If the <meta> tag contains an http-equiv attribute, the content attribute specifies the requested HTTP response header. If the <meta> tag contains a name attribute, the rewriting depends on the value of the attribute. Depending upon the value of the name attribute, the content attribute is replaced by one of the following options:
description Description of page in the currently requested location. csrf_param Name of the FORM parameter for CSRF protection. csrf_token The CSRF token for the current request. generator Name or version of the IBM portal server hosting the page.
Parent topic: Static content