Add or removing a ready-to-use module to a theme
To add or remove a theme update the profile that defines the modules that we use to render a page for the theme .
A profile defines the modules used to render a page for a theme.
A pointer to the profile is set in the theme metadata.properties file. This property file is located in the profiles folder of the theme in the /themelist entry point of WebDAV. The following line is an example of pointing to the profile_deferred.json from a metatdata.properties file: :
resourceaggregation.profile=profiles/profile_deferred.json
The profiles are located in the profiles directory under the /themelist entry point. The profile file must be a valid JSON file. The following is an example of a valid JSON file:
{ "moduleIDs" : [ "wp_theme_portal_80", "wp_portlet_css", "wp_one_ui", "wp_one_ui_dijit", "wp_legacy_layouts", "wp_client_ext", "wp_status_bar", "wp_theme_menus", "wp_theme_skin_region", "wp_theme_high_contrast", "wp_layout_windowstates", "wp_theme_edit", "wp_project_menu", "wp_preview", "wp_portal", "wp_analytics_aggregator" ], "deferredModuleIDs" : [ "wp_theme_widget", "wp_toolbar", "wp_project_menu_edit", "wp_preview_menu", "wp_tagging_rating", "wp_liveobject_framework", "wp_analytics", "wp_federated_documents_picker", "wp_content_mapping_picker", "wp_pagebuilder_controls", "wp_pagebuilder_dnd", "mm_new_page_dialog", "mm_builder_wiring", "mm_move_page", "mm_delete_page", "mm_delete_control", "mm_page_sharing_permission", "wp_template_select_dialog" ], "titles":[ { "bundle":"nls.profile", "key":"profile_deferred.title" } ], "descriptions":[ { "bundle":"nls.profile", "key":"profile_deferred.description" } ] }
- Open the profile file located in the /profiles directory.
In the previous example, the profile_deferred.json file was defined in the metatdata.properties file.
- Edit the .json file by adding or removing the specific module id.
- Restart WebSphere Portal. Your changes are incorporated after the system restarts.
- Optional: We can change the name of the profile after updating the .json file. Update the metadata.properties file with the new name of the profile. This change resets the server-side cache.
Parent: The module framework