Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

<?xml version="1.0" encoding="utf-8"?>
<html>

Files:

  • _new-theme-source _(This directory holds the new theme's source code)
  • dspace-src/dspace/modules/xmlui/src/main/webapp/themes/theme-dir (This will be the new location for the theme's source)
  • dspace/config/xmlui.xconf

...

  1. If you are installing a brand new theme that is not distributed with Manakin then preform the following operations, otherwise skip to the next step. <p class="Example">
    Code Block
    cp 
    new-theme-source dspace-src/dspace/modules/xmlui/src/main/webapp/themes/theme-dir
  2. Open Manakin's configuration file, dspace/config/xmlui.xconf, scroll to the bottom and locate the <themes> element.
  3. Add a new tag <theme> element inside the <themes> element as below:
    Code Block
    &lt;theme name="My new theme" path="[theme-dir]"/&gt;
  4. If you wish to install this theme onto a particular community or collection then modify the new <theme> tag as:
    Code Block
    &lt;theme name="My new theme" handle="123/1" path="[theme-dir]"/&gt;
  5. If you wish to install this theme as the default theme then modify your new <theme> tag (make sure this tag is the last theme defined):
    Code Block
    &lt;theme name="My new theme" regex=".*" path="[theme-dir]"/&gt;
  • Other Example
    Code Block
    regex
    values:
  • Code Block
    regex="^$"
    (Theme for homepage ONLY)
  • Code Block
    regex="^browse$"
    (Theme for all global "Browse By" pages)
  • Code Block
    regex="community-list"
    (Theme for Community Listing page)
  1. Restart Tomcat (See Quick Restart in Rebuild+DSpace)

...