Adding 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.

Before you begin

A profile defines the modules that are 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 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 in the profiles directory under the /themelist entry point. The profile file must be a valid JSON file. The following example shows 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"
	  }
	 ]
	}

Procedure

  1. Open the profile file in the /profiles directory. In the previous example, the profile_deferred.json file is defined in the metatdata.properties file.
  2. Make a copy of the profile file and give your copy a unique name.
  3. Edit the .json file by adding or removing the specific module ID.
  4. Copy the profile that you created to the /profiles directory.
  5. Restart WebSphere® Portal. Your changes are incorporated after the system restarts.
  6. Optional: You can change the name of the profile after you update the .json file. Update the metadata.properties file with the new name of the profile. This change resets the server-side cache.

Example