This project is read-only.

Match path= with Capital 'P' won't work

Topics: Administration, Customizing Orchard, General
Jul 9, 2013 at 8:38 AM
Edited Jul 9, 2013 at 1:49 PM
I have spent quite some time to make ' Match path=' working!
I wonder what I'm doing wrong because all the Doc uses Path= (Capital P!).

On my system ONLY when using path= (lower case p!) it works!
PS: This is the only statement in my Themes

<Match path="/plants/*">
           <Place Fields_Common_Text="/AsideSecond:12"/>
           <Place Fields_MediaPicker="/AsideSecond:2"/>

... it's not that important now where I know .. but might be for others running into the same issue!

thanks for your time
May 20, 2014 at 4:54 PM
Edited May 20, 2014 at 4:57 PM
I ran into the same issue and found that I needed to add a tilde to my Path. When changing it to a lowercase "path" it might not be working as you describe, it's just not seeing the Match "path" tag and moving on to your Place element. Try adding a tilde "~" in your Path like below.
     <Match Path="~/plants/*">
         <Place Fields_Common_Text="/AsideSecond:12"/>
         <Place Fields_MediaPicker="/AsideSecond:2"/>