Homepage template naming

Jan 24, 2011 at 8:51 PM

Hi,

Someone in the comments to my theming blog post suggested that I could use Content-Homepage.cshtml instead of Content-11.cshtml to template the content on my homepage. The content has an ID of 11, but Content-Homepage would be neater and more obvious.

This doesn't work and I can't find any reference to it as a way to address a template. Should I be able to do this or was the commenter mistaken?

Thanks,

Richard Garside.

Coordinator
Jan 24, 2011 at 9:14 PM

You need to add that alternate for it to work. Read this:

http://weblogs.asp.net/bleroy/archive/2011/01/10/orchard-shapeshifting.aspx