I have installed Config Tree 3.1.0 in Umbraco 7.1.6 .. it works greats, but it also add a tree node for the folder "Splashes". And if you try to open this tree node, you'll get an error..
Could the folder "Splashes" be excluded? perhaps make a check on the folder name and exclude it when rendering the tree nodes?
This folder just contains two .aspx files used by Umbraco, but I don't think you want to edit these files anyway. There might be other packages which include folders with config files in the config folder, e.g. Tea Commerce, but I would prefer the "Splashes" folder to be excluded :)
Exclude the folder Splashes
Hi..
I have installed Config Tree 3.1.0 in Umbraco 7.1.6 .. it works greats, but it also add a tree node for the folder "Splashes". And if you try to open this tree node, you'll get an error..
Could the folder "Splashes" be excluded? perhaps make a check on the folder name and exclude it when rendering the tree nodes?
This folder just contains two .aspx files used by Umbraco, but I don't think you want to edit these files anyway. There might be other packages which include folders with config files in the config folder, e.g. Tea Commerce, but I would prefer the "Splashes" folder to be excluded :)
/Bjarne
Hi Bjarne,
Good suggestion, I like it!
I think it might be better to only display folders that would contain any
*.config
files - otherwise hiding the folder.Would it be something that you'd be interested in collaborating on? (Not sure how comfortable you are with C#?)
I think the
OnRenderFolderNode
method would be the place to remove unwanted folders:https://github.com/leekelleher/umbraco-config-tree/blob/master/src/Our.Umbraco.Tree.Config/LoadConfigFiles.cs#L106
Thanks,
- Lee
Hi Lee
I know some C# and the basic, but still a lot I don't know much about. Mostly I work with frontend and xslt, razor and basic C# code.
I have worked a bit with adding custom sections and trees in both Umbraco v4, v6 and v7, but mostly the basic.
Perhaps this is something that can be used? http://stackoverflow.com/questions/2712798/checking-if-folder-has-files and then a check for *.config files?
I had in the Analytics package https://github.com/warrenbuckley/Analytics/blob/master/Analytics/UmbracoStartup.cs#L71-L88 used the e.Nodes.Remove() method
/Bjarne
Hi Bjarne, sounds good!
e.Nodes.Remove()
should do the job.If you could raise this as an issue on the GitHub repo, then I can look to schedule it in at some point (or if anyone else wants to pick it up) :-)
https://github.com/leekelleher/umbraco-config-tree/issues
Thanks again!
Cheers,
- Lee
Great :) .. I have created a new issue here: https://github.com/leekelleher/umbraco-config-tree/issues/2
Thanks,
Bjarne
Great, thanks Bjarne!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.