Naming Convention for Module Builder Widget Template Overrides
The snippet can be accessed without any authentication.
Authored by
areynold
Dynamic content widgets (i.e., widgets created as part of a module builder module) can be overridden using Sitefinity's designer tools (Dashboard > Design > Widget Templates) or in code using the following naming convention.
snippetfile1.txt 704 B
Folder naming convention for overrides:
* [Resource Package]/Mvc/Views/[content-type-developer-name]/List.[display-name-of-content-type].cshtml
* [Resource Package]/Mvc/Views/[content-type-developer-name]/Detail.[display-name-of-content-type].cshtml
Additional templates can be added by appending `_TemplateName` to the filename.
Examples:
* Beckman2018/Mvc/Views/VislabEquipment/List.Vislab Equipment.cshtml
* Beckman2018/Mvc/Views/VislabEquipment/Detail.Vislab Equipment.cshtml
* Beckman2018/Mvc/Views/VislabEquipment/Detail.Vislab Equipment_Fees.cshtml
See also: https://www.sitefinity.com/developer-network/forums/project-feather/place-dynamic-content-type-widget-template-inside-resource-package
Please register or sign in to comment