24 lines
891 B
C#
24 lines
891 B
C#
|
|
using Umbraco.Core;
|
|||
|
|
using Umbraco.Core.IO;
|
|||
|
|
using Umbraco.Web.Models.Trees;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Web.Trees
|
|||
|
|
{
|
|||
|
|
[CoreTree(TreeGroup = Constants.Trees.Groups.Templating)]
|
|||
|
|
[Tree(Constants.Applications.Settings, "files", "Files", "icon-folder", "icon-folder", sortOrder: 13, initialize: false)]
|
|||
|
|
public class FilesTreeController : FileSystemTreeController
|
|||
|
|
{
|
|||
|
|
protected override IFileSystem FileSystem => new PhysicalFileSystem("~/"); // fixme inject
|
|||
|
|
|
|||
|
|
protected override string[] Extensions => new string[] { };
|
|||
|
|
|
|||
|
|
protected override string FileIcon => "icon-script";
|
|||
|
|
|
|||
|
|
protected override void OnRenderFolderNode(ref TreeNode treeNode)
|
|||
|
|
{
|
|||
|
|
//TODO: This isn't the best way to ensure a noop process for clicking a node but it works for now.
|
|||
|
|
treeNode.AdditionalData["jsClickCallback"] = "javascript:void(0);";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|