This project is read-only. match for Homepage

Topics: Customizing Orchard, General, Writing themes
May 18, 2011 at 10:38 PM

I'm trying to override a placement for a part on my homepage, and I can't figure out how to do it.  I'm trying to use the doc found here and I have a couple issues.  First of all, in the doc it says to use the syntax <Match Path="/About"> but I think it's supposed to be <Match Path="About">.  More importantly, I've tried the following syntaxes for the homepage:

  • <Match Path="">
    • Get a value cannot be null exception
  • <Match Path="/">
    • no effect
  • <Match Path="Home"> (the route for my page had it not been set to the homepage)
    • no effect
May 18, 2011 at 10:39 PM

Weird, I got it to work using <Match Path="~/">