Home

 

Removing community themes

To make a specific community theme unavailable to your users, or you want to disable all community themes, you can do so by editing the Communities configuration file, communities-config.xml.

To edit configuration files, use the IBM WebSphere Application Server wsadmin client. See Start the wsadmin client for details.


The list of themes displayed in the theme palette in Communities corresponds to the list of themes defined in the Communities configuration file, communities-config.xml. To remove a specific theme from the palette, you can do so by removing the theme or commenting out the relevant section in the configuration file. Or, if you have applied corporate branding to all of IBM Lotus Connections, and you want to disable community theming so that the branding applies to all communities, you can do so by removing all of the theme information from the communities-config.xml file. When you remove all of the theme information, the option to choose a theme no longer displays when users are creating or editing communities.

To remove community themes...

  1. Use the wsadmin client to access and check out the Communities configuration files.

    1. Access the Communities configuration files:

      If you are asked to select a server, you can select any server.

    2. Check out the Communities configuration files...

      CommunitiesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working while you make changes to them.

      • cell_name is the name of the WebSphere Application Server cell hosting the Lotus Connections feature. This argument is required even in stand-alone deployments. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: Look at the name after the following in the file system:

            WAS_HOME\profiles\profile_name\config\cells\
            

      • Network deployment: Type the following command while in the wsadmin command processor:

          print AdminControl.getCell()
          

      For example:

        CommunitiesConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")
        

  2. Open communities-config.xml in a text editor.

  3. Do one of the following:

    • To remove a specific theme, find the <comm:theme> element that corresponds to the theme that you want to remove, and either delete that section or comment it out.For example:

        <!-- <comm:theme>
           <comm:themeUuid>CorporateTheme</comm:themeUuid>
           <comm:displayNameKey>label.theme.name.corporate</comm:displayNameKey>
           <comm:isScriptKey>false</comm:isScriptKey>
           <comm:cssUrl>/nav/common/styles/corporateTheme/corporateTheme.css</comm:cssUrl>
           <comm:cssRtlUrl>/nav/common/styles/corporateTheme/corporateThemeRTL.css</comm:cssRtlUrl>
           <comm:thumbnailUrl>/images/CorporateTheme.jpg</comm:thumbnailUrl>
        </comm:theme> -->
        

  4. To remove all community themes, delete or comment out all of the <comm:theme> elements in the file.

  5. Save the communities-config.xml file.

  6. After making changes, check the configuration files back in, and do so during the same wsadmin session in which you checked them out for your configuration changes to take effect. You must also stop and restart the Communities server. See Applying property changes for information about how to save and apply your changes.


Add a custom theme to Communities

 

Related tasks

Define a theme

Add a theme to the configuration file


+

Search Tips   |   Advanced Search