Layer Rule Question

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

Hello,

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

Coordinator
Jun 27, 2011 at 11:13 PM
Edited Jun 27, 2011 at 11: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 6:37 PM
Edited Sep 30, 2011 at 6:38 PM

Hello,

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?

Regards,

TJ Havens

Coordinator
Sep 30, 2011 at 7:01 PM

url("~/team/*")

Sep 30, 2011 at 7:02 PM

Thank you Bertrand!

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

url("~/team/*")

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: http://domain.com/team