Fixes up some naming conventions and removes need to instantiate another umbraco helper
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
**/
|
||||
function publishedContentResource($q, $http, umbRequestHelper) {
|
||||
|
||||
//TODO: Why do we have this ? If we want a URL why isn't it just on the content controller ?
|
||||
|
||||
//the factory object returned
|
||||
return {
|
||||
|
||||
|
||||
@@ -7,13 +7,16 @@ using Umbraco.Web.Mvc;
|
||||
|
||||
namespace Umbraco.Web.Editors
|
||||
{
|
||||
|
||||
//TODO: Why do we have this ? If we want a URL why isn't it just on the content controller ?
|
||||
|
||||
[PluginController("UmbracoApi")]
|
||||
public class PublishedContentController : UmbracoAuthorizedJsonController
|
||||
{
|
||||
UmbracoHelper helper = new UmbracoHelper(UmbracoContext.Current);
|
||||
|
||||
public string GetNiceUrl(int id)
|
||||
{
|
||||
return helper.NiceUrl(id);
|
||||
return Umbraco.NiceUrl(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
public string UserInterface { get; set; }
|
||||
|
||||
[DataMember(Name = "frontEndCommand")]
|
||||
public string FrontendCommand { get; set; }
|
||||
public string FrontEndCommand { get; set; }
|
||||
|
||||
[DataMember(Name = "value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
Command = n.SelectSingleNode("./tinyMceCommand").FirstChild.Value,
|
||||
Alias = n.SelectSingleNode("./umbracoAlias").FirstChild.Value.ToLower(),
|
||||
UserInterface = n.SelectSingleNode("./tinyMceCommand").Attributes.GetNamedItem("userInterface").Value,
|
||||
FrontendCommand = n.SelectSingleNode("./tinyMceCommand").Attributes.GetNamedItem("frontendCommand").Value,
|
||||
FrontEndCommand = n.SelectSingleNode("./tinyMceCommand").Attributes.GetNamedItem("frontendCommand").Value,
|
||||
Value = n.SelectSingleNode("./tinyMceCommand").Attributes.GetNamedItem("value").Value,
|
||||
Priority = int.Parse(n.SelectSingleNode("./priority").FirstChild.Value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user