diff --git a/Documentation/SOGoInstallationGuide.asciidoc b/Documentation/SOGoInstallationGuide.asciidoc index feb27bec4f..d1568d5aca 100644 --- a/Documentation/SOGoInstallationGuide.asciidoc +++ b/Documentation/SOGoInstallationGuide.asciidoc @@ -1819,6 +1819,11 @@ behaviour of SOGo. Defaults to `SOGo` when unset. +|S |SOGoHelpURL +|Parameter used to define the URL to online help for SOGo. When set, +an additional icon will appear near the logout button in SOGo's +web interface. The URL will always be open in a blank target. + |U |SOGoLoginModule |Parameter used to specify which module to show after login. Possible values are: diff --git a/NEWS b/NEWS index 4c1a81c764..eb19dccd3f 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,7 @@ Enhancements - [web] updated Angular Material to version 1.0.6 - [web] added Lithuanan (lt) translation - thanks to Mantas LiobÄ— - [web] we now "cc" delegates during invitation updates (#3195) + - [web] new SOGoHelpURL preference to set a custom URL for SOGo help (#2768) Bug fixes - [web] fixed missing columns in SELECT statements (PostgreSQL) diff --git a/SoObjects/SOGo/SOGoSystemDefaults.h b/SoObjects/SOGo/SOGoSystemDefaults.h index 98f141438a..58bdb81745 100644 --- a/SoObjects/SOGo/SOGoSystemDefaults.h +++ b/SoObjects/SOGo/SOGoSystemDefaults.h @@ -1,6 +1,6 @@ /* SOGoSystemDefaults.h - this file is part of SOGo * - * Copyright (C) 2009-2015 Inverse inc. + * Copyright (C) 2009-2016 Inverse inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,6 +67,7 @@ - (BOOL) easDebugEnabled; - (NSString *) pageTitle; +- (NSString *) helpURL; - (NSArray *) supportedLanguages; - (NSString *) loginSuffix; diff --git a/SoObjects/SOGo/SOGoSystemDefaults.m b/SoObjects/SOGo/SOGoSystemDefaults.m index 00bfcef6d0..51959e8ae6 100644 --- a/SoObjects/SOGo/SOGoSystemDefaults.m +++ b/SoObjects/SOGo/SOGoSystemDefaults.m @@ -435,6 +435,11 @@ - (NSString *) pageTitle return [self stringForKey: @"SOGoPageTitle"]; } +- (NSString *) helpURL +{ + return [self stringForKey: @"SOGoHelpURL"]; +} + - (NSArray *) supportedLanguages { static NSArray *supportedLanguages = nil; diff --git a/UI/Common/UIxPageFrame.m b/UI/Common/UIxPageFrame.m index b748022d17..4dc8cc5708 100644 --- a/UI/Common/UIxPageFrame.m +++ b/UI/Common/UIxPageFrame.m @@ -112,20 +112,21 @@ - (NSString *) doctype return (@""); } -/* Help URL/target */ - +/* Help URL */ - (NSString *) helpURL { - return [NSString stringWithFormat: @"help/%@.html", title]; -} + SOGoSystemDefaults *sd; + NSString *s; -- (NSString *) helpWindowTarget -{ - return [NSString stringWithFormat: @"Help_%@", title]; + sd = [SOGoSystemDefaults sharedSystemDefaults]; + + if ((s = [sd helpURL])) + return s; + + return @""; } /* notifications */ - - (void) sleep { [item release]; diff --git a/UI/Templates/UIxTopnavToolbarTemplate.wox b/UI/Templates/UIxTopnavToolbarTemplate.wox index 5a3685d885..d2b6c1b4fd 100644 --- a/UI/Templates/UIxTopnavToolbarTemplate.wox +++ b/UI/Templates/UIxTopnavToolbarTemplate.wox @@ -53,6 +53,13 @@
+ + help_outline + +