Copied to clipboard

Flag this post as spam?

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


  • Robert J. Bullock 386 posts 405 karma points
    Nov 14, 2014 @ 18:47
    Robert J. Bullock
    0

    Umbraco 7 Script Editor Allowed Filetypes

    In Umbraco 6.2.x, you could allow any type of text file to be edited in the Script editor by modifying the <scriptEditor> element in the umbracoSettings.config. This no longer works... How can I setup 7 to allow me to edit .LESS files in the script editor (or, even better, the CSS editor)?

  • Robert J. Bullock 386 posts 405 karma points
    Nov 14, 2014 @ 19:12
    Robert J. Bullock
    0

    Nevermind... found it... 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 14, 2014 @ 19:22
    Jan Skovgaard
    0

    Hi Robert

    Do you mind sharing how to do it in v7? Or is it the same settings as usual, but you just overlooked them the first time perhaps? :) Otherwise I think it be great if you would share.

    Cheers, Jan

  • Robert J. Bullock 386 posts 405 karma points
    Nov 15, 2014 @ 20:38
    Robert J. Bullock
    0

    I believe the configuration location changed... It's still in umbracosettings.config, but beneath the content section:

    <content>

    ...

        <scripteditor>

          <!-- Path to script folder - no ending "/" -->

          <scriptFolderPath>/scripts</scriptFolderPath>

          <!-- what files can be opened/created in the script editor -->

          <scriptFileTypes>js,xml,less</scriptFileTypes>

          <!-- disable the codepress editor and use a simple textarea instead -->

          <!-- note! codemirror editor always disabled in IE due to automatic hyperlinking "feature" in contenteditable areas -->

          <scriptDisableEditor>false</scriptDisableEditor>

        </scripteditor>

    </content>

    Robert

  • Robert J. Bullock 386 posts 405 karma points
    Nov 15, 2014 @ 20:39
    Robert J. Bullock
    0

    Wow, you know, it's the same as before! But for some reason didn't seem to work initially... Go figure.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Nov 16, 2014 @ 06:53
    Jan Skovgaard
    0

    Hi Robert

    Ah ok - Perhaps you just forgot to recycle the app pool after making the changes initially?

    /Jan

  • daniel 7 posts 37 karma points
    Sep 18, 2015 @ 16:03
    daniel
    0

    I've done what I said but I have not managed to make it work, I want a custom folder for Scripts and Styles and which can be viewed from the dashboard umbraco.

Please Sign in or register to post replies

Write your reply to:

Draft