Set Inherited Theme Templates
We can set a theme template to be used on a page and have it automatically set the template for all child pages associated with that page.
This inheritance is introduced through the following metadata key, which is added to a page...
com.ibm.portal.theme.inherited.template.file.name.html=myfile.html
The myfile.html file, which corresponds to the theme template we are setting, must already be in WebDAV in the directory...
/mycontenthandler/fs-type1/themes/Portal8.5/
We can set the theme template using WebDAV or managed pages. After the custom theme template is set, we can see it displayed on the page and all child pages corresponding to that parent page.
- Set the theme template through the Edit Page Properties dialog from the Overview tab.
- Go to the page where to set the new metadata.
- Click Edit Mode.
- In the Overview section, hover over the name of the page and click the Edit.
- Click the Advanced tab and enter the following information in the Metadata section:
- Key
- com.ibm.portal.theme.inherited.template.file.name.html.
- Value
- Enter the HTML file name that corresponds to the theme template we are trying to set.
- Click Add to set the new metadata for the page.
- Click Save.
- Set the theme template from the managed pages administrative portlet.
- In the IBM WebSphere Portal administrative section, click the Manage Pages tab and go to the page where to set the metadata.
- Select the Edit Page Properties option for the page to edit.
- In Advanced options, select I want to set parameters and enter the following information:
- New parameter
- com.ibm.portal.theme.inherited.template.file.name.html.
- New value
- Enter the HTML file name that corresponds to the theme template we are trying to set.
- Click Add to set the new metadata for the page.
- Click Save.
Parent Theme templates (theme.html)