Home

 

Making a custom theme available to your users

You can create custom themes and make them available to your blog users. Customizing themes requires experience editing HTML and CSS files.


Follow these steps to make a custom theme available to your users from the Blogs theme field on the Create Blog form.

  1. Copy the contents of the default 'blog' theme into a new under <WAS HOME>/installedApps/<Cell Name>/Blogs.ear/blogs.war/themes.

  2. Modify or add template files to create the desired look, layout, and content for your theme.

  3. Create an image to display as a preview thumbnail so that users can see what the theme looks like from the Create Blog form. The naming convention is sm-theme-blog_directory_name.gif. For example the preview image for the default blog theme is named sm-theme-blog.gif.

  4. Add the new theme name to the resource file: <WAS HOME>/installedApps/<Cell Name>/Blogs.ear/blogs.war/WEB-INF/classes/ApplicationResources.properties.

    Locate the #themes section of the file and enter the theme name in the format: ventura.theme.yourThemeDirectoryName.

    For example, ventura.theme.MyTheme=My Theme.

    Adding the new theme name to the ApplicationResources.properties file makes the new theme work in English. For international support, you are encouraged to edit the ApplicationResources_<language>.properties file, where <language> is the ISO country code associated with the language in which you want to specify the custom label. For example, to support Chinese, you should also edit the ApplicationResources_zh.properties file.


Customizing a blog theme


+

Search Tips   |   Advanced Search