MicroStrategy ONE

Replacing the MicroStrategy Web icon

This scenario shows you how to replace the MicroStrategy Web icon with an image or logo of your choice. You perform this customization by providing a new image and modifying the selectors in the global CSS file that point to the image. You modify the selectors both for the static state and the hover state (when the icon is clicked).

Before customization:

After customization:

Using the plug-in provided for you

The MicroStrategy SDK provides an out-of-the-box plug-in (ZIP file) that changes the icon used for the History List on the default Home page. Follow the simple steps below to deploy the plug-in and view the results in MicroStrategy Web. 

  1. Access the plug-in: JSP version or ASP .NET version.  

  2. Extract the plug-in to the plugins subfolder inside the MicroStrategy Web installation folder.    

  3. Restart your web server.  

  4. Launch MicroStrategy Web to view the customization.

Creating the plug-in yourself using the Web Customization Editor

If you want to understand how to replace the MicroStrategy Web button with a different image, follow the steps below to create the plug-in and deploy it.

  1. Launch the Web Customization Editor.  

  2. Create a new plug-in and give it a meaningful name.  

    1. On the Application Settings tab, click the Select Plug-in icon.:


    2. On the Select Plug-in dialog box, click New and enter a meaningful name for the plug-in, such as ReplacingMicroStrategyWebButton.  

    3. Click OK.  

  3. On the CSS Settings tab, expand CSS.  

  4. Expand MicroStrategy WebStyles, then expand style, then expand mstr.:

    The instructions below assume that you have named your plug-in "ReplacingMicroStrategyWebButton" and your image file "project.gif". If you have used a different name for your plug-in or your image file, substitute that name in the instructions.

    • Expand mstr.css  

      1. Expand .mstrLogo, then double-click background to open Update CSS Property Editor.  

        1.  For Value, change logo.png to project.gif. The new value is transparent url(images/project.gif) no-repeat scroll center.  

        2. Apply to All Pages.  

        3. Click OK. The modified property is added to global.css under CSS->Customized Web Styles->style.  

      2. Right-click A.mstrLink:hover .mstrLogo and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter * HTML .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (* HTML .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click * HTML .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter filter.  

        2. For Value, enter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../plugins/ReplacingMicroStrategyWebButton/style/images/project.gif', sizingMethod='scale').  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.

      1. Enter * HTML A.mstrLink:hover .mstrLogo as the Selector.

      2. Apply to All Pages.  

      3. Click OK. The new selector (* HTML A.mstrLink:hover .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.

      4. Right-click * HTML A.mstrLink:hover .mstrLogo and choose New Property to open the Update CSS Property Editor.

        1. For Property, enter filter.

        2. For Value, enter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../plugins/ReplacingMicroStrategyWebButton/style/images/project.gif', sizingMethod='scale').  

        3. Apply to All Pages.

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  
      1. For Selector, enter .Blue .opened .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (.Blue .opened .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .Blue .opened .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter .Carbon .opened .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (.Carbon .opened .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .Carbon .opened .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter .Red .opened .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (Red .opened .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .Red .opened .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter .opened .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (.opened .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .opened .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter .mstrWeb.Carbon .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (.mstrWeb.Carbon .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .mstrWeb.Carbon .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.  

      1. For Selector, enter .Carbon A.mstrLink:hover .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (.Carbon A.mstrLink:hover .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click .Carbon A.mstrLink:hover .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter background.  

        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.
      1. For Selector, enter .mojoPath .mstrLogo.
      2. Apply to All Pages.
      3. Click OK. The new selector (.mojoPath .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.
      4. Right-click .mojoPath .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.
        1. For Property, enter background.
        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.
        3. Apply to All Pages.
        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.
    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.
      1. For Selector, enter .mojoPath .opened .mstrLogo.
      2. Apply to All Pages.
      3. Click OK. The new selector (.mojoPath .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.
      4. Right-click .mojoPath .opened .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.
        1. For Property, enter background.
        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.
        3. Apply to All Pages.
        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.
    • Right-click mstr.css and choose New Selector to open the New CSS Element Editor.
      1. For Selector, enter .mojoPath .opened .mstrLogo:hover.
      2. Apply to All Pages.
      3. Click OK. The new selector (.mojoPath .mstrLogo:hover) is added to global.css under CSS->Customized Web Styles->style.
      4. Right-click .mojoPath .opened .mstrLogo:hover under global.css and choose New Property to open the Update CSS Property Editor.
        1. For Property, enter background.
        2. For Value, enter transparent url(images/project.gif) no-repeat scroll center.
        3. Apply to All Pages.
        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  
  5. If you are using Microsoft Internet Explorer v6.x, you need to make additional changes. Expand MicroStrategy WebStyles, then expand style, then expand mstr.  

    • Right-click ie6.css and choose New Selector to open the New CSS Element Editor.
      1. For Selector, enter * HTML .mstrLogo.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (* HTML .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click * HTML .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter filter.  

        2. For Value, enter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../plugins/ReplacingMicroStrategyWebButton/style/images/project.gif', sizingMethod='scale').  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

    • Right-click ie6.css and choose New Selector to open the New CSS Element Editor.  

      1. Enter * HTML A.mstrLink:hover .mstrLogo as the Selector.  

      2. Apply to All Pages.  

      3. Click OK. The new selector (* HTML A.mstrLink:hover .mstrLogo) is added to global.css under CSS->Customized Web Styles->style.  

      4. Right-click * HTML A.mstrLink:hover .mstrLogo under global.css and choose New Property to open the Update CSS Property Editor.  

        1. For Property, enter filter.  

        2. For Value, enter progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../plugins/ReplacingMicroStrategyWebButton/style/images/project.gif', sizingMethod='scale').  

        3. Apply to All Pages.  

        4. Click OK. The new property is added to global.css under CSS->Customized Web Styles->style.  

  6. A new plug-in folder, with the name you gave it, now exists in the plugins folder of your MicroStrategy Web installation directory. Save the image that you want to use in place of the MicroStrategy Web icon under /style/imagesin your plug-in folder. For example,plugins/ReplacingMicroStrategyWebButton/style/images/project.gif.  

  7. To view your customizations, restart your web server and launch MicroStrategy Web.