U4-8857 - Update Umbraco Macro Partial Templates to use Best-Practices (IPublishedContent)

Created by Paul Sterling 17 Aug 2016, 01:03:49 Updated by Paul Sterling 17 Aug 2016, 01:03:49

Consider updating the macro partial templates (\Umbraco\PartialViewMacros\Templates*) to move away from the use of Dynamics and to use IPublishedContent by default. Possibly factor models where Models Builder is in use to use those, but at the very least demonstrating best-practices here would be ideal.

The Gallery template does not currently work as-is. Altering the helper method to the below allows it to work, but still using dynamics:

@helper Render(dynamic item)
    <li class="span2">
        <a href="@item.umbracoFile" class="thumbnail">
            <img src="@item.umbracoFile" alt="@item.Name" />


Priority: Normal

Type: Task

State: Submitted


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: