Copied to clipboard

Flag this post as spam?

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


  • Psib3r 70 posts 119 karma points
    Jan 04, 2013 @ 10:40
    Psib3r
    0

    Scripting folder in Settings section

    I would like to give page editors the ability to create cshtml scripts in the Settings section as I do not want them to have access to the macro cshtml scripts in the Developer section, does anyone know how to achieve this?  

    I know I can add the cshtml extension to the umbracosettings config file to allow the creation, but it is the parsing that is the problem, these files don't recognise html etc...

  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 07, 2013 @ 10:30
    Mike Chambers
    0

    why not move the scripting folder out of the developer section and into the settings section?

    if >= u4.8 you can simply amend the config/trees.config file

    otherwise it's a simple database modification in dbo.applicationtrees table.

  • Psib3r 70 posts 119 karma points
    Jan 07, 2013 @ 10:49
    Psib3r
    0

    Running 4.9 and tried that, it did not work

  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 07, 2013 @ 10:54
    Mike Chambers
    0

    did you touch the web.config or recycle the app pool?

  • Psib3r 70 posts 119 karma points
    Jan 07, 2013 @ 10:56
    Psib3r
    0

    no to both

  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 07, 2013 @ 11:02
    Mike Chambers
    100

    after making config changes... you need to do one or the other.. ;-) for the changes to be reflected

  • Psib3r 70 posts 119 karma points
    Jan 08, 2013 @ 11:31
    Psib3r
    0

    that worked, thanks

Please Sign in or register to post replies

Write your reply to:

Draft