U4-53 - Selecting a template for a doc type should auto set default template

Created by Matt Brailsford 20 Jun 2012, 12:03:19 Updated by Sebastiaan Janssen 02 Sep 2012, 18:00:36

Subtask of: U4-136

Comments

Rusty Swayne 22 Jun 2012, 16:19:29

I think this should be optional or limited to doc type's that do not have a template associated with them.


Matt Brailsford 22 Jun 2012, 17:16:46

This was in v5, and is limited to the first time an allowed template is selected. It's arguably more likely that this selection would be the default template than not, so should save time for most people.


Andy Butland 15 Jul 2012, 13:22:14

I've had a look at this one. Sorry for the absence of a pull request but have been attempting to fork and clone for 45 mins now with no success... keeps aborting. But should be straightfoward to just put here I think.

Here's the code - I've put it inline in umbraco.presentation > umbraco\settings\EditNodeTypeNew.aspx as it will only be required there. I've also added the converse - if an allowed template is de-selected and it's selected as the default, to de-select the default.

<asp:Content ContentPlaceHolderID="head" runat="server"> </asp:Content>


Morten Christensen 17 Jul 2012, 15:59:41

Thanks for posting this Andy! We'll review your code and hopefully add it to the 4.9.0 release once we get started working on this in August.


Andy Butland 19 Aug 2012, 20:40:01

Thought would test out the new "slim-line" repo, so have arranged a [http://umbraco.codeplex.com/SourceControl/network/forks/abutland/WorkingFork/contribution/3269 pull request] for a slight adaptation on the above.


Priority: Normal

Type: Feature (planned)

State: Fixed

Assignee:

Difficulty: Very Easy

Category: UI

Backwards Compatible: False

Fix Submitted: Pull request

Affected versions: 4.8.0, 4.9.0

Due in version: 4.9.0

Sprint:

Story Points:

Cycle: