This project is read-only.

Widget layer rules based on url contains?

Topics: Customizing Orchard, General, Troubleshooting
Feb 2, 2012 at 12:07 AM

Hey Orchard folks,

I'm playing around with orchard for the first time today, and in the little site I am building, I need a way to display a different sidebar based on the category that a page is in. I have set up the slugs so that pages in category 1 will have "~/category1/etc..." and pages in category 2 will have "~/category2/etc...". Now I'm wondering, is there a way to create a custom rule for layers based on whether the url contains the category1 or category2 string?


Feb 2, 2012 at 12:10 AM

Oh, never mind, just found it. Asterisk!