This project is read-only.

Custom template

Topics: Customizing Orchard, General
Dec 26, 2013 at 11:26 AM
i've created a new content type with some parts, for example: title, body and Mello's imagegallery.
Then i've create a template to customize the layout of the content type i've created; for the nuw template file i've to start from a blank file and it's quite difficult for me. Is it possible to start to standard cshtml file and modify it?

Thank you

Dec 26, 2013 at 12:18 PM
If you're customizing the Content template for your content type, you could start by copying Content.cshtml from Orchard.Core/Contents/Views into your module's or theme's Views folder and customize it.
Dec 26, 2013 at 10:55 PM
Thank you for the suggestion.
Dec 27, 2013 at 6:17 PM
Is it possible to create a template for a single part of a content type?
For example only for the imagegallery part of a content type.
Dec 27, 2013 at 6:53 PM
Yes. Enable Shape Tracing module and it will show you alternates you can create for parts.