Can i configure which files are editable in the filemanger?
I have some new file extensions i like to edit.
Developer forum
E-mail notifications
Filemanager editable extensions
Remi Muller
Posted on 02/07/2012 17:12:05
Replies
Remi Muller
Posted on 11/07/2012 16:05:37
No ideas, anyone? Is it not possible?
Vladimir
Posted on 17/07/2012 03:58:04
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:
Best regards,
Vladimir
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; }
Vladimir
Votes for this answer: 0
Remi Muller
Posted on 19/07/2012 11:46:23
Thanks this wil work for now. Make it a feature request.
You must be logged in to post in the forum