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)?
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.
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.
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)?
Nevermind... found it...
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
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
Wow, you know, it's the same as before! But for some reason didn't seem to work initially... Go figure.
Hi Robert
Ah ok - Perhaps you just forgot to recycle the app pool after making the changes initially?
/Jan
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.
is working on a reply...