This project is read-only.

Alternates Documentation: Clarification

Topics: Customizing Orchard
Sep 16, 2013 at 11:58 PM

I followed the Alternates documentation here:

... to make an alternate render (.cshtml) to the Parts_Comments_Count shape in the BlogPost content type.

As it is stated in the documentation I could do 2 things in my theme:
  1. Make a .cshtml file in the folder Views\Parts of my theme called: Comments.Count-BlogPost.cshtml - DOESN'T WORK!
  2. Make a .cshtml file in the folder Views of my theme called: Parts.Comments.Count-BlogPost.cshtml - WORKS!
Can anybody tell me why is that the first option works and the second doesn't?


Sep 17, 2013 at 6:48 PM
Because the documentation needs to be updated maybe?
Sep 17, 2013 at 7:42 PM
BertrandLeRoy wrote:
Because the documentation needs to be updated maybe?
Bertrand, I keep asking this kind o questions because:
  1. It can be that it is actually not working anymore -> Documentation needs to be updated
  2. It can be a bug -> In this case is not a problem with documentation but with Orchard core
  3. I'm doing anything wrong -> In this case I can be the one corrected to do things right.
I think it is better to play it safe when it comes to modify things: documentation or code, so I prefer to ask instead of making assumptions that might be wrong.

Excuse me if you are kind of tired of this kind of questions.
Sep 17, 2013 at 7:46 PM
Sure. I'm not tired ;)