1) a) su - sogo b) cd GNUstep/Library/SOGo/Templates/ c) cp /usr/lib/GNUstep/SOGo/Templates/UIxPageFrame.wox . d) cp /usr/lib/GNUstep/SOGo/WebServerResources/generic.js . e) rm -f /usr/lib/GNUstep/SOGo/Templates/UIxPageFrame.wox f) rm - /usr/lib/GNUstep/SOGo/Templates/generic.js g) ln -s /home/sogo/GNUstep/Library/SOGo/Templates/UIxPageFrame.wox /usr/lib/GNUstep/SOGo/Templates/UIxPageFrame.wox h) ln -s /home/sogo/GNUstep/Library/SOGo/Templates/generic.js /usr/lib/GNUstep/SOGo/WebServerResources/generic.js i) vim UIxPageFrame.wox
Find the instruction bloc that begin by <var:if condition="userHasMailAccess"> Then just after the end of this bloc and before the bloc <a id="preferencesBannerLink" I added my first link : <a id="FTPBannerLink" style="color:#1589FF;" var:href="https://ajaxplorer.mydomain.fr" ><var:string label:value="FTP IAS" /></a 2) a) vim generic.js b) just after the function onPreferencesClick I created a the function onFTPClick function onFTPClick(event) { var urlstr = "https://ajaxplorer.mydomain.fr"; var windowSize = "width=900px,height=600px,resizable=1,scrollbars=1,location=0"; var w = window.open(urlstr, "FTP IAS", windowSize); w.opener = window; w.focus(); } c)Then you move into the function configureLinkBanner() and just before the line <link = $("preferencesBannerLink");> you add your link : link = $("FTPBannerLink"); if (link) { link.observe("mousedown", listRowMouseDownHandler); link.observe("click", clickEventWrapper(onFTPClick)); } By following this way you can create several other links that will opens themselves in another window by clicking on them. Given Note-1 : the symbolic links created above (ln -s ….) are supposed (I hope) to avoid theses two files to be overwriting at the next upgrade of sogo. Note-2 : I do not know why but that doesn't work if my personal link is after the one of the preferences. Hoping this can help you… Gerard -- users@sogo.nu https://inverse.ca/sogo/lists