I see there are views defined in all sorts of places, such as:
- ~/Dinamico/Themes/Default/Views/ContentPages/XXX.cshtml
- ~/Dinamico/Themes/Default/Views/ContentParts/XXX.cshtml
but then there are also some things in a Shared folder e.g.
- ~/Dinamico/Themes/Default/Views/Shared/
This is all very confusing and the documentation in no place I have been able to find explains the layout of these files.
If for example I define a part such as this:
[PartDefinition()] [RestrictChildren(typeof(foo))] [AvailableZone("Content", "Content")] public class CustomPart : PartModelBase { ... }
Where do I put the view file? Can I define it only in my own theme and not in the default theme? Can I define a default theme outside of the Dinamico directory? I feel like I should avoid mixing site-specific parts with the Dinamico directory, but I'm not sure how to do this.
I assume that I need to put something like this in the view as well:
@model CustomPart
@{ Content.Define(ie => ie.Title = "Text"); }