I've used the gist of the HelloWorld module to place a page into my site. The .cshtml file itself is a wizard, and in the background is a complex model. That works fine. (I must confess, I feel like I am working outside of Orchard with this,
which almost defeats the purpose of using it, but alas I digress).
I'm using a Route.cs to insert this page. And that works fine too. Navigate to /SomePage and YAY!
However, the main site has some "default" content (layer, etc.). I am happy to have the default footer zone content. However, just as a test, I had default content for "AsideSecond" zone (an HTML Widget).
Now, when I navigate to my arbitrary page I see my default footer zone content (which is fine), but I also see the AsideSecond zone content, which is bad as it is just overlapping with the content of my /SomePage.
I have been wracking my brain with the Placement.info file, and cannot seem to figure this out. I got the idea to use "Zone_AsideSecond" from the Orchard docs, but that doesn't work. I tried using <Match> attributes (Path="/SomePage";
ContentType="Page"; ContentType="Body", ContentType="Zone", etc.) but nothing works. I've tried a bunch of variations.
Basically, I am trying to send that zone to nowhere. I was testing it out because I expected to send everything to nowhere in this module's placement.info. What am I doing wrong?
I tried using the Designer Tools but I cannot figure it out. Most of what I find on here or the GooglePlex is Parts_..., for example I see Parts_Common_Body in the designer. I know it's an HTML Widget, but even if that was it I cannot figure
out how to word the <Place> attribute to handle that widget. And if I use "Parts_Common_Body" am I not only just dealing with content for that type only, what about everything else I create that I place in "default"?
I thought about creating a layer rule, but that doesn't seem right, primarily because I am going to have about 6 of these types of pages on the site, and it seems contrary to Orchard to do that.
Thanks in advance.