Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Mashup Center wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...

 Developing with Mashup Center 3.0.0.1

 Planning, Installing, Configuring Mashup Center 3
 Enterprise Content Management Widgets 4.5.2.1 documentation

 IBM Mashup Center 2.0.0.2 documentation

Tag Cloud

  • 2.0
  • 3.0
  • 3.0.0.1
  • action widgets
  • actions
  • admin
  • administering
  • administration
  • administrator
  • adminstering
  • Ajax
  • AJAX proxy
  • annotate function
  • annotator
  • API
  • api reference
  • benchmark testing
  • catalog
  • configuing
  • configuration
  • configure
  • configuring
  • creating
  • creating mashups
  • data
  • data mashup builder
  • data mashups
  • database
  • DB2
  • demo
  • deploy
  • deployment
  • designing applications
  • developer
  • developing
  • developing mashups
  • developing widgets
  • documentation
  • ECM Widgets
  • editing
  • Enterprise Content Management Widgets
  • errors
  • events
  • examples
  • explanations
  • feed
  • feed mashups
  • feeds
  • format
  • functions
  • getting started
  • greenhouse
  • guide
  • IMS database feeds
  • IMS feeds
  • IMS transaction feeds
  • installation
  • installing
  • mashup
  • MashupHub
  • mashuphub examples
  • mashuphub users guide
  • mashups
  • messages
  • migrating
  • objects
  • operators
  • Oracle
  • pages
  • payload types
  • pdf
  • performance
  • performance tuning
  • planning
  • product
  • programming
  • proxy
  • rest services
  • security
  • service
  • spaces
  • themes
  • troubleshooting
  • tutorial
  • tutorials
  • upgrading
  • user
  • users
  • v1.0
  • v1.1
  • v2.0
  • v2.0.0.2
  • v4.5.2.1
  • video
  • WAR
  • widget
  • widgets
  • widgets
  • wire
  • YouTube
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Developing with Mashup Center 3.0.0.1 > Creating and deploying custom themes and skins
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Creating and deploying custom themes and skins 

expanded Abstract
collapsed Abstract
This topic describes how to create and deploy a custom theme and skin. We recommend that you use the default Page Builder 2 theme that is provided with Mashup Center as a template, update the files as necessary, and then upload them to the public WebDAV storage directory on the Mashup Center server.



This topic describes how to create and deploy a custom theme and skin. We recommend that you use the default Page Builder 2 theme that is provided with Mashup Center as a template, update the files as necessary, and then upload them to the public WebDAV storage directory on the Mashup Center server.

About this task

Note: Do not modify the Page Builder 2 theme directly, as this theme can be updated by service fix packs and override your changes.

Note: When using previous versions of Mashup Center, you were required to package and deploy your custom themes as WAR files. Starting with Mashup Center 3.0, themes are no longer packaged as WAR files but are instead stored in WebDAV in the public/themes directory as a defined folder structure. Mashup Center 3.0 still supports the WAR file format and deployment for themes in a 3.0 format, but we recommend that you use the new WebDAV method since it does not require any special tools such as an Eclipse-based development environment.

Procedure

  1. Do the following steps to create a new custom theme called myTheme:
    1. On the Mashup Center server, navigate to the MashupCenter_install_root/mm/themes/ directory.
    2. Make a copy of the pageBuilder2.zip file and paste it into a directory on your local machine where you can edit it. From this point forward, you will be editing your local copy of the pageBuilder2.zip file, not the one on the server. Be sure not to delete or alter the file on the server.
    3. Rename the pageBuilder2.zip file to something unique, such as myTheme.zip.
    4. Unzip the myTheme.zip file in the myTheme directory.
    5. Open the myTheme/metadata.properties file, and change the unique-name property value to myTheme. Later, if you create a new skin for your theme and want to designate that skin as the default skin for the theme, reopen this file and change the default-skin property value to the name of your custom skin. Do not change the com.ibm.mashups.theme.body.class and preview-url property values.
    6. Open the myTheme/metadata/localized_en.properties file, and change the title property to myTheme. Optionally add a description.
    7. Save your changes.
    8. Do the following steps to customize your new theme and change the background of the mashup page:
      1. Add the new image to the myTheme/css/default/themeImages folder.
      2. Open the myTheme/css/themes/theme.css file and change the lotusMain { background: #FFF; margin: 0px; ......} line to lotusMain { background: url(../default/themeImages/loginBkgd.jpg); margin: 0px; ......}.
      3. Save your changes.
      Example: To change the background color from white to black, do the following steps:
      1. Open the myTheme/css/themes/theme.css file and change the lotusMain { background: #FFF; margin: 0px; ......} line to lotusMain { background: #000; margin: 0px; ......}.
      2. Save your changes.
    9. Do the following steps to customize your new theme and change the banner background color. This example changes the background color to red:
      1. Open the myTheme/css/themes/theme.css file and change the .lotusBanner{padding:0 10px;background-color:#000;background-image:-moz-linear-gradient(top,
        1. 525252 0%, #000000 100%);-webkit-gradient(linear, left top, left
        bottom, from(#525252), to(#000000));}
        line to lotusBanner{padding:0 10px;background-color:red;background-image:-moz-linear-gradient(top, red 0%, red 100%);-webkit-gradient(linear, left top, left bottom, from(red), to(red));}.
      2. Save your changes.
  2. Do the following steps to create a new custom skin called mySkin:
    1. Make a copy of the myTheme/Standard folder in the same myTheme folder, and rename the new folder to something unique, for example mySkin. At this point, your myTheme folder contains various subfolders, including the following:
      • Standard
      • NoSkin
      • mySkin
    2. Open the mySkin/metadata.properties file, and change the unique-name property value to mySkin and save your changes.
    3. Open the mySkin/metadata/localized_en.properties file, and change the title property to My Skin. Optionally add a description. Save your changes.
  3. Do the following steps to customize your new skin to reference an image:
    1. Open the myTheme/mySkin/nls/skin_en.html file.
    2. Locate the header element for the title bar, for example <h2 class="decoration-titlebar....">.
    3. Locate this line of code in the title bar section:
      <span class="lotusLeft"> <!-- lm-dynamic-title node marks location for dynamic title support -->
      <span class="lm-dynamic-title asa.portlet.title decoration-title">
      <a rel="dynamic-content" href="lm:title"></a><br />
      <a rel="dynamic-content" href="lm:description"></a></span>
      </span>
    4. Add the following code after the </span> tag and save your changes: <span class="myimage">&nbsp</span>.
    5. Open the myTheme/css/themes/theme.css file.
    6. Add the following code to the bottom of the file and save your changes:
      .myimage{
      display:block;
      float:left;
      background:url("../../css/images/iconInfo.gif") no-repeat;
      margin-left:10px;
      min-height:16px;
      min-width:16px;
      }
  4. To stop the caching of themes in WebDAV, open myTheme/metadata.properties, and set the developerMode property to true. This allows your theme changes to take place immediately for users without having to restart the Mashup Center server.
  5. Do the following steps to deploy your myTheme custom theme:
    1. Compress the contents of the myTheme folder and name it myTheme.zip.
    2. Place the myTheme.zip file in the MashupCenter_install_root/mm/themes directory.
    3. Navigate to the MashupCenter_install_root/config directory.
    4. Enter the following command to install the theme:
      • Windows: config.bat import-theme –DthemeZip=myTheme.zip –DMashupAdmin=admin –DMashupPass=admin
      • Linux and AIX: ./config.sh import-theme –DthemeZip=myTheme.zip –DMashupAdmin=admin –DMashupPass=admin
    5. Restart the Mashup Center server.
For more information about the Page Builder 2 theme, including how to create a new theme or modify an existing theme, see the Developing an Exceptional Web Experience page in the IBM WebSphere Portal family wiki.
 
Parent topic: Working with themes and skins

expanded Article information
collapsed Article information
Category:
Developing with Mashup Center 3.0.0.1, IBM Mashup Center 3.0.0.1 documentation, Product Documentation,
Tags:
developing mashups, spaces, pages, themes, widgets

This Version: Version 33 November 4, 2011 2:09:25 PM by li1 li1  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (33)
collapsed Versions (33)
Version Comparison     
Version Date Changed by               Summary of changes
This version (33) Nov 4, 2011 2:09:25 PM li1 li1  
32 Nov 4, 2011 2:08:30 PM li1 li1  
31 Nov 4, 2011 1:51:41 PM li1 li1  
30 Nov 4, 2011 1:50:38 PM li1 li1  
29 Nov 4, 2011 1:47:15 PM li1 li1  
28 Nov 4, 2011 1:44:31 PM li1 li1  
27 Nov 4, 2011 1:36:26 PM li1 li1  
26 Nov 4, 2011 1:35:33 PM li1 li1  
25 Nov 4, 2011 1:35:00 PM li1 li1  
24 Nov 4, 2011 1:33:42 PM li1 li1  
23 Nov 4, 2011 1:31:06 PM li1 li1  
22 Nov 4, 2011 1:29:34 PM li1 li1  
21 Nov 4, 2011 1:28:07 PM li1 li1  
20 Jun 2, 2011 5:04:38 PM Anna G O'Neal  
19 Jun 2, 2011 4:54:07 PM Anna G O'Neal  
18 Jun 2, 2011 4:52:52 PM Anna G O'Neal  
17 Jun 2, 2011 10:27:52 AM Anna G O'Neal  
16 Jun 2, 2011 9:20:46 AM Anna G O'Neal  
15 Jun 2, 2011 9:20:05 AM Anna G O'Neal  
14 Jun 2, 2011 9:17:07 AM Anna G O'Neal  
13 May 25, 2011 11:53:22 AM Anna G O'Neal  
12 May 25, 2011 11:52:05 AM Anna G O'Neal  
11 May 24, 2011 4:57:31 PM Anna G O'Neal  
10 May 24, 2011 4:52:59 PM Anna G O'Neal  
9 May 24, 2011 4:50:34 PM Anna G O'Neal  
8 May 24, 2011 4:49:55 PM Anna G O'Neal  
7 May 24, 2011 4:48:10 PM Anna G O'Neal  
6 May 24, 2011 4:39:30 PM Anna G O'Neal  
5 May 24, 2011 4:35:57 PM Anna G O'Neal  
4 May 24, 2011 4:34:22 PM Anna G O'Neal  
3 May 23, 2011 1:47:36 PM Anna G O'Neal  
2 May 20, 2011 4:44:59 PM Anna G O'Neal  
1 May 19, 2011 6:31:19 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use