Thanks Mark,  Muhammad and Helix.
This works, applying the Reference theme to the "home" and leaving the rest or Dspace with Mirage....

<theme name="Reference Theme" regex="^$" path="Reference/"></theme>
<theme name="Atmire Mirage Theme" regex=".*" path="Mirage/"> </theme>


regarding the order, according with the documentation from the class **ThemeMatcher**

/This class determines the correct Theme to apply to the URL. This is determined by the Theme rules defined in the xmlui.xml configuration file. Each rule is evaluated in order and the *first rule to match* is the selected Theme. Once the Theme has been selected the following sitemap parameters are provided: {themeName} is a unique name for the Theme, and {theme} is the theme's path./

best regards
Emilio



El 11/05/2012 15:38, Mark H. Wood escribió:
On Fri, May 11, 2012 at 09:38:57AM +0200, emilio lorenzo wrote:
Muhammad, apparently order matters. If you put:

<theme name="home" handle="/" path="Reference/" />
<theme name="Default Reference Theme" regex=".*" path="Classic/" />
<theme name="comunidad" regex="community-list" path="Kubrick/" />

the second line matches before the third and the communty-list is showed
with classic theme..
Yes, order is significant.  It actually says this in xmlui.xconf:

         Keep in mind that the order of<theme>  elements matters in the case of
         overlapping matching rules. For example, a theme rule with a very broad
         matching rule (like regex=".*") will override a more specific theme
         declaration (like handle="1234/23") if placed before it.

I suspect that the path of the entry page is not "/" but the empty
string.  Regex matching an empty string: "^$".  You need an anchored
pattern because ThemeMatcher uses Matcher.find(), which scans for an
unanchored match.  (If the path *is* "/" then I would use the regex
"^/$".)

If you enable debug-level logging in ThemeMatcher, you can see what it
does as it works its way through the theme mapping rules.



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to