U4-3049 - Create UI for RenderSection in template editor

Created by Sebastiaan Janssen 06 Oct 2013, 16:00:09 Updated by Shannon Deminick 21 Jun 2017, 07:58:15

Relates to: U4-2776

Now that we have some nice custom overloads for RenderSection, we should make them discoverable and usable in the template editor.

The UI should support all of the scenario's:

@RenderSection("Footer") // Default ASP.NET MVC behavior @RenderSection("Footer", false) // Default ASP.NET MVC behavior @RenderSection("Footer", true) // Default ASP.NET MVC behavior

@RenderSection("Footer", "Default text if section not implemented") // If section not implemented, default text will be shown @RenderSection("Footer", @Inline Html: Default content) // If section not implemented, default HTML will be shown @RenderSection("Footer", DefaultContent()) // The result of an @helper will be shown if the section isn't implemented @RenderSection("Footer", Html.Partial("MyTest")) // The result of a partial will be shown if the section isn't implemented @RenderSection("Footer", Html.Partial("MyTest", new MyModel())) // The result of a partial requiring a custom model will be shown if the section isn't implemented

It would be good to be able to actually select your partial in the UI and add the model automatically by detecting what @model is defined in the partial.

Comments

Shannon Deminick 21 Jun 2017, 07:58:15

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Task

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: