Parastream™ PagePorter™

Changing the Default Theme

When you change the default theme for the web site, you need to change the MsTheme property of the site's base page class (which is derived from FpPage). This class is normally called BasePage, and is located in the BasePage.cs (PagePage.vb in Visual Basic, or BasePage.jsl in Visual J#) file in the project root folder. This is a manual step, because PagePorter doesn't know if there are other files that may contain base page classes.

Follow these steps to update the base page classes in the web site after changing the default theme:

  1. Select Site Settings... from the PagePorter menu.
  2. Select the Themes tab.
  3. Select the topmost line from the Theme strings box. It should consist of the theme name, a space, and four digits.
  4. Press Ctrl+C to copy the string to the clipboard.
  5. Go to each page base class that derives directly from FpPage (such as the BasePage class), and replace the value for the MsTheme property with the pasted clipboard contents.
  6. Rebuild the project.

Although the web pages may look as expected in the designer, many controls such as FpLinkBar use the MsTheme property from the page class for rendering and won't look right until the MsTheme property is made consistent with the theme's attributes.

See Also

Working with Themes