View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001045 | SOGo | Web General | public | 2010-12-07 12:39 | 2011-03-30 15:22 |
| Reporter | paubry | Assigned To | francis | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Product Version | 1.3.4 | ||||
| Fixed in Version | 1.3.6 | ||||
| Summary | 0001045: Custom page title | ||||
| Description | The page title seems to be fixed (SOGo). It would be nice if configurable; in particular when running on clustered servers, we wish to use the page title to indicate the users on which physical server the application is running on. | ||||
| Tags | No tags attached. | ||||
|
2010-12-07 12:39
|
patch-1.3.4-PageTitle.txt (1,951 bytes)
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h 2010-12-07 13:07:32.000000000 +0100
@@ -59,6 +59,8 @@
- (BOOL) uixDebugEnabled;
+- (NSString *) pageTitle;
+
- (NSArray *) supportedLanguages;
- (NSString *) loginSuffix;
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m 2010-12-07 13:08:25.000000000 +0100
@@ -271,6 +271,11 @@
return [self boolForKey: @"SOGoUIxDebugEnabled"];
}
+- (NSString *) pageTitle
+{
+ return [self stringForKey: @"SOGoPageTitle"];
+}
+
- (NSArray *) supportedLanguages
{
return [self stringArrayForKey: @"SOGoSupportedLanguages"];
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m SOGo-1.3.4/UI/Common/UIxPageFrame.m
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Common/UIxPageFrame.m 2010-12-07 13:09:07.000000000 +0100
@@ -78,6 +78,14 @@
- (NSString *) title
{
+ NSString *pageTitle;
+ SOGoSystemDefaults *sd;
+
+ sd = [SOGoSystemDefaults sharedSystemDefaults];
+ pageTitle = [sd pageTitle];
+ if ([pageTitle length])
+ return pageTitle;
+
if ([self isUIxDebugEnabled])
return title;
|
|
Sorry, I did not see that title was also used by methods helpURL and helpWindowTarget. |
|
|
2010-12-08 14:46
|
patch-1.3.4-PageTitle2.txt (3,249 bytes)
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h 2010-12-07 13:07:32.000000000 +0100
@@ -59,6 +59,8 @@
- (BOOL) uixDebugEnabled;
+- (NSString *) pageTitle;
+
- (NSArray *) supportedLanguages;
- (NSString *) loginSuffix;
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m 2010-12-07 13:08:25.000000000 +0100
@@ -271,6 +271,11 @@
return [self boolForKey: @"SOGoUIxDebugEnabled"];
}
+- (NSString *) pageTitle
+{
+ return [self stringForKey: @"SOGoPageTitle"];
+}
+
- (NSArray *) supportedLanguages
{
return [self stringArrayForKey: @"SOGoSupportedLanguages"];
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.h SOGo-1.3.4/UI/Common/UIxPageFrame.h
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.h 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Common/UIxPageFrame.h 2010-12-08 15:34:53.000000000 +0100
@@ -37,6 +37,7 @@
@interface UIxPageFrame : UIxComponent
{
NSString *title;
+ NSString *pageTitle;
NSString *toolbar;
id item;
BOOL isPopup;
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m SOGo-1.3.4/UI/Common/UIxPageFrame.m
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Common/UIxPageFrame.m 2010-12-08 15:34:21.000000000 +0100
@@ -84,6 +84,19 @@
return [self labelForKey: @"SOGo"];
}
+- (NSString *) pageTitle
+{
+ NSString *pageTitle;
+ SOGoSystemDefaults *sd;
+
+ sd = [SOGoSystemDefaults sharedSystemDefaults];
+ pageTitle = [sd pageTitle];
+ if ([pageTitle length])
+ return pageTitle;
+
+ return title;
+}
+
- (void) setItem: (id) _item
{
ASSIGN (item, _item);
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Templates/UIxPageFrame.wox SOGo-1.3.4/UI/Templates/UIxPageFrame.wox
--- SOGo-1.3.4-dist/UI/Templates/UIxPageFrame.wox 2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Templates/UIxPageFrame.wox 2010-12-08 15:35:34.000000000 +0100
@@ -13,7 +13,7 @@
xml:lang="en" const:lang="en">
<head>
<title>
- <var:string value="title"/>
+ <var:string value="pageTitle"/>
</title>
<meta name="hideFrame" var:content="hideFrame" />
<meta name="description" content="SOGo Web Interface" />
|
|
Fixed in revision 85f004835cf5ba09158bc317c859435dd12fe5bf. Thanks! |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-12-07 12:39 | paubry | New Issue | |
| 2010-12-07 12:39 | paubry | File Added: patch-1.3.4-PageTitle.txt | |
| 2010-12-08 14:46 | paubry | Note Added: 0001938 | |
| 2010-12-08 14:46 | paubry | File Added: patch-1.3.4-PageTitle2.txt | |
| 2011-03-30 15:22 | francis | Note Added: 0002308 | |
| 2011-03-30 15:22 | francis | Status | new => resolved |
| 2011-03-30 15:22 | francis | Fixed in Version | => 1.3.6 |
| 2011-03-30 15:22 | francis | Resolution | open => fixed |
| 2011-03-30 15:22 | francis | Assigned To | => francis |