Layer Rule Question

Topics: Customizing Orchard, General, Writing themes
Jun 26, 2011 at 10:19 PM


I have a question about using the "AND" value with respect to Layer rules... Is this valid url("~/") and url("~/home-es-US")

Jun 27, 2011 at 10:13 PM
Edited Jun 27, 2011 at 10:14 PM

Yes. But it can never, ever match anything. It's like saying (a == 1 and a == 2). I think what you meant to use was "or".

Sep 30, 2011 at 5:37 PM
Edited Sep 30, 2011 at 5:38 PM


Got another question about layer rules...

I want to create a rule that shows the same layer on "url("~/team") and all other pages beyond team, such as url("~/team/pageshere"), I plan on having over 20-30 pages in my team layer... is there a way to make them display on all the pages that after the /team/ directory?


TJ Havens

Sep 30, 2011 at 6:01 PM


Sep 30, 2011 at 6:02 PM

Thank you Bertrand!

Oct 22, 2011 at 10:41 AM
bertrandleroy wrote:


Seems like you are a bit wrong about the rule xotj123. It should be url("~/team*") or url("~/team") or url("~/team/*"). Otherwise it doesn't match for the root team url: