Someone sent me a pm requesting how to change the vertical order of your icons in the Services section. So I guess I put a post here. Before you spend time doing this you should know that every time you upgrade OMV the core plugins will lose their position again. Also, when you upgrade a given plugin the position will be lost. So you will find yourself with a seemingly unending task to make order of your service icons.
In .5 OMV and soon to be OMV 1 you need to go to this location:
/var/www/openmediavault/js/omv/module/admin/service
Then in this service folder you will have folders for all the plugins. You need to go into a given service folder, let's say antivirus (which is the clamav folder because that is the name of the program for antivirus) and look for the node file. The node file in the clamav folder is ClamAV.js in .5 and I think it is Clamav.js in OMV 1. Each of these files have a header. I am not going to show headers but I'll show what is important in the file. Here is the contents of ClamAV.js:
// require("js/omv/WorkspaceManager.js")
OMV.WorkspaceManager.registerNode({
id: "clamav",
path: "/service",
text: _("Antivirus"),
icon16: "images/antivirus.png",
iconSvg: "images/antivirus.svg"
});
If you look this line it shows the name that will appear in the services section of the web-gui:
Since the word Antivirus is used and not ClamAV you will probably want this node to appear first in the services section, if you want things alphabetically.
You achieve this by adding a comma at the end of the last line which is:
Then you need to add a position line after it. The last line in these files does not require the comma, thus:
So the final edited file should look like this:
// require("js/omv/WorkspaceManager.js")
OMV.WorkspaceManager.registerNode({
id: "clamav",
path: "/service",
text: _("Antivirus"),
icon16: "images/antivirus.png",
iconSvg: "images/antivirus.svg",
position: 10
});
Alles anzeigen
Now in my services section the next node is Backup, which is the rsnapshot plugin. In the rsnapshot folder the node file is Rsnapshot.js and is as such:
// require("js/omv/WorkspaceManager.js")
OMV.WorkspaceManager.registerNode({
id : "rsnapshot",
path : "/service",
text : _("Backup"),
icon16 : "images/rsnapshot.png",
iconSvg : "images/rsnapshot.svg"
});
To fix the position of this node the edited file will be:
// require("js/omv/WorkspaceManager.js")
OMV.WorkspaceManager.registerNode({
id : "rsnapshot",
path : "/service",
text : _("Backup"),
icon16 : "images/rsnapshot.png",
iconSvg : "images/rsnapshot.svg",
position: 20
});
Alles anzeigen
And you just continue on down the list adding a comma to the iconSvg line and then adding the position line.
That's it. You do not have to use increments of 10 but that is what we use.
I recommend installing and using webmin's filemanager if you want to make such edits. I use this filemanager all the time for editing files, chmod, chown, etc., etc....
http://www.webmin.com/deb.html
You can go to this link for webmin and copy and paste install lines right into putty. I usually do this:
mkdir scratch
cd /scratch
dpkg --install webmin_1.690_all.deb
It takes a bit to install and then:
rm web (first 3 letters of the package and then press TAB, for TAB Completion of the name, and hit ENTER to delete the package)
Then there are some more dependencies that can be installed with:
apt-get -f install
Then you can access webmin at:
https://ipofyouromv:10000
Sign in with root user and root password. Once logged into webmin the File Manager is in the "Others" section under the name "File Manager".
PS- To view any changes in the JavaScript you need to refresh your browser. You will not see the changes in order until you do!!!