Developer forum

Forum » Development » Filemanager editable extensions

Filemanager editable extensions

Remi Muller
Reply
 Can i configure which files are editable in the filemanger?
I have some new file extensions i like to edit.

Replies

 
Remi Muller
Reply
 No ideas, anyone? Is it not possible?
 
Vladimir
Reply
This post has been marked as an answer
Hi Remi,
they are not configurable, perhaps this is a good idea to implement.
I can offer only trick:
1) open script \Dynamicweb\Dynamicweb.Admin\Admin\Filemanager\Browser\EntryContent.js
2) correct function FileManagerPage.prototype.isEditable
for example:
FileManagerPage.prototype.isEditable = function (file) {
    var res = false;
    if (file) {
        file = file.toLowerCase();
        this.editableExtensions.each(function (item) {
            if (file.endsWith(item))
                res = true;
        });
        if (file.endsWith(".tx2")) res = true; //My custom extension
    }
    return res;
}
Best regards,
Vladimir

Votes for this answer: 0
 
Remi Muller
Reply
 Thanks this wil work for now. Make it a feature request.

 

You must be logged in to post in the forum