Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Sep 27, 2014 @ 13:45
    Bjarne Fyrstenborg
    1

    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

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 29, 2014 @ 12:36
    Lee Kelleher
    0

    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

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Sep 29, 2014 @ 14:52
    Bjarne Fyrstenborg
    1

    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

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 29, 2014 @ 14:56
    Lee Kelleher
    1

    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

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Sep 29, 2014 @ 15:03
    Bjarne Fyrstenborg
    0

    Great :) .. I have created a new issue here: https://github.com/leekelleher/umbraco-config-tree/issues/2

    Thanks,
    Bjarne 

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 29, 2014 @ 15:04
    Lee Kelleher
    0

    Great, thanks Bjarne!

  • 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.

Please Sign in or register to post replies