Skip to content
Snippets Groups Projects

Naming Convention for Module Builder Widget Template Overrides

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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.

    Edited
    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
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment