Implements U4-10219 and U4-10218

This commit is contained in:
Niels Hartvig
2017-08-01 16:19:32 +02:00
parent 6655be5f5e
commit 7e49cc0f25
3 changed files with 30 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
<div>
<em>This is a non designed placeholder for beta release.</em>
<h1>What is Content Templates?</h1>
<p>Content Templates are pre-defined content that can be selected when creating a new Content Node.</p>
<h2>How do I create a Content Template?</h2>
<p>Simply right-click a content node and select "Create Content Template" to create a new Content Template. Once given a name, editors can start
using the Content Template as a foundation for their new page.</p>
<h2>How do I manage Content Templates</h2>
<p>You can edit and delete Content Templates from the "Content Templates" tree in the Settings section. Simply expand the Document Type which the
Content Template is based on and click it to edit or delete it.</p>
</div>

View File

@@ -38,7 +38,7 @@
<key alias="sort">Sort</key>
<key alias="translate">Translate</key>
<key alias="update">Update</key>
<key alias="createblueprint">Create blueprint</key>
<key alias="createblueprint">Create Content Template</key>
</area>
<area alias="actionCategories">
<key alias="content">Content</key>
@@ -64,7 +64,7 @@
<key alias="sort">Allow access to change the sort order for nodes</key>
<key alias="translate">Allow access to translate a node</key>
<key alias="update">Allow access to save a node</key>
<key alias="createblueprint">Allow access to create a content template</key>
<key alias="createblueprint">Allow access to create a Content Template</key>
</area>
<area alias="assignDomain">
<key alias="permissionDenied">Permission denied.</key>
@@ -210,12 +210,12 @@
<key alias="nestedContentEditorNotSupported">Property %0% uses editor %1% which is not supported by Nested Content.</key>
<key alias="addTextBox">Add another text box</key>
<key alias="removeTextBox">Remove this text box</key>
<key alias="createBlueprintFrom">Create a blueprint from %0%</key>
<key alias="createBlueprintFrom">Create a Content Template from %0%</key>
<key alias="blankBlueprint">Blank</key>
<key alias="selectBlueprint">Select a blueprint</key>
<key alias="createdBlueprintHeading">Blueprint created</key>
<key alias="createdBlueprintMessage">Blueprint was created from %0%</key>
<key alias="duplicateBlueprintMessage">Another Blueprint with the same name already exists.</key>
<key alias="selectBlueprint">Select a Content Template</key>
<key alias="createdBlueprintHeading">Content Template created</key>
<key alias="createdBlueprintMessage">A Content Template was created from %0%</key>
<key alias="duplicateBlueprintMessage">Another Content Template with the same name already exists.</key>
<key alias="contentRoot">Content root</key>
</area>
<area alias="media">
@@ -1530,7 +1530,7 @@ To manage your website, simply open the Umbraco back office and start adding con
</area>
<area alias="treeHeaders">
<key alias="content">Content</key>
<key alias="contentBlueprints">Content Blueprints</key>
<key alias="contentBlueprints">Content Templates</key>
<key alias="media">Media</key>
<key alias="cacheBrowser">Cache Browser</key>
<key alias="contentRecycleBin">Recycle Bin</key>

View File

@@ -32,6 +32,16 @@ namespace Umbraco.Web.Trees
[CoreTree]
public class ContentBlueprintTreeController : TreeController
{
protected override TreeNode CreateRootNode(FormDataCollection queryStrings)
{
var root = base.CreateRootNode(queryStrings);
//this will load in a custom UI instead of the dashboard for the root node
root.RoutePath = string.Format("{0}/{1}/{2}", Constants.Applications.Settings, Constants.Trees.ContentBlueprints, "intro");
return root;
}
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
{
var nodes = new TreeNodeCollection();