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.
--
Mark H. Wood, Lead System Programmer [email protected]
Asking whether markets are efficient is like asking whether people are smart.
pgpNqzG690RRm.pgp
Description: PGP signature
------------------------------------------------------------------------------ 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

