+2004-07-27 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * sogod.m: added static SoRootURL to context (v0.9.4)
+
2004-07-19 Marcus Mueller <znek@mulle-kybernetik.com>
* sogod.m, */Locale: converted to UTF-8 for better editability (v0.9.3)
-# $Id: GNUmakefile,v 1.13 2004/06/08 11:41:13 helge Exp $
+# $Id$
include $(GNUSTEP_MAKEFILES)/common.make
# $Id$
-SUBMINOR_VERSION:=3
+SUBMINOR_VERSION:=4
locale = [self currentLocaleConsideringLanguages:langs];
[_ctx takeValue:locale forKey:@"locale"];
}
+
+ /* set SoRootURL */
+ if(![_ctx valueForKey:@"SoRootURL"]) {
+ [_ctx takeValue:@"/sogod.woa/so/" forKey:@"SoRootURL"];
+ }
/* first check attributes directly bound to the application */
if ((obj = [super lookupName:_key inContext:_ctx acquire:_flag]))
return obj;
+2004-07-27 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.2
+
+ * UIxPageFrame.m: added convenience methods to access specific parts
+ of the URL.
+
+ * UIxPageFrame.wox: fixed navigation URLs. Inserted references to
+ rootURL where no content is currently available.
+
+ * UIxAppNavView.m: enhanced construction of navigation url path.
+
2004-07-26 Marcus Mueller <znek@mulle-kybernetik.com>
* calendar.css: added styles for dayoverview's content.
if (![name hasPrefix:@"sogod"]) {
NSMutableDictionary *c;
-
+ NSString *url;
+
+ url = [obj baseURLInContext:[self context]];
+ if(![url hasSuffix:@"/"]) {
+ url = [url stringByAppendingString:@"/"];
+ }
c = [[NSMutableDictionary alloc] initWithCapacity:2];
[c setObject:name forKey:@"name"];
- [c setObject:[obj baseURLInContext:[self context]] forKey:@"url"];
+ [c setObject:url forKey:@"url"];
[navPathComponents addObject:c];
[c release];
}
@interface UIxPageFrame : SoComponent
{
- NSString *title;
+ NSString *title;
+ NSString *rootURL;
+ NSString *userRootURL;
}
+- (SoUser *)user;
+- (NSString *)rootURL;
+- (NSString *)userRootURL;
+- (NSString *)calendarRootURL;
+
@end
#include "common.h"
- (void)dealloc {
[self->title release];
+ [self->rootURL release];
+ [self->userRootURL release];
[super dealloc];
}
- (void)setTitle:(NSString *)_value {
ASSIGN(self->title, _value);
}
-
- (NSString *)title {
return self->title;
}
-- (NSString *)login {
+- (SoUser *)user {
WOContext *ctx;
- SoUser *user;
ctx = [self context];
- user = [[[self clientObject] authenticatorInContext:ctx]
+ return [[[self clientObject] authenticatorInContext:ctx]
userInContext:ctx];
- return [user login];
}
+- (NSString *)rootURL {
+ WOContext *ctx;
+ NSArray *traversalObjects;
+
+ if(self->rootURL)
+ return self->rootURL;
+
+ ctx = [self context];
+ traversalObjects = [ctx objectTraversalStack];
+ self->rootURL = [[[traversalObjects objectAtIndex:0]
+ rootURLInContext:ctx]
+ retain];
+ return self->rootURL;
+}
+
+- (NSString *)userRootURL {
+ WOContext *ctx;
+ NSArray *traversalObjects;
+
+ if(self->userRootURL)
+ return self->userRootURL;
+
+ ctx = [self context];
+ traversalObjects = [ctx objectTraversalStack];
+ self->userRootURL = [[[[traversalObjects objectAtIndex:1]
+ baseURLInContext:ctx]
+ stringByAppendingString:@"/"]
+ retain];
+ return self->userRootURL;
+}
+
+- (NSString *)calendarRootURL {
+ return [[self userRootURL] stringByAppendingString:@"Calendar/"];
+}
+
+
@end /* UIxPageFrame */
<tr>
<td>
<font class="skydockfont">
- <a href="/sogod.woa/so/" class="skydockfont">SOGo (<var:string value="login" />)</a>
+ <a var:href="userRootURL" class="skydockfont">SOGo (<var:string value="user.login" />)</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skydockfont">News</a>
+ <a var:href="userRootURL" class="skydockfont">News</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Projects</a>
+ <a var:href="userRootURL" class="skydockfont">Projects</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Contacts</a>
+ <a var:href="userRootURL" class="skydockfont">Contacts</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Companies</a>
+ <a var:href="userRootURL" class="skydockfont">Companies</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skyDockFont">Calendar</a>
+ <a var:href="calendarRootURL" class="skyDockFont">Calendar</a>
</font>
</td>
</tr>
<tr>
<td valign="middle">
<font class="skydockfont">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Tasks</a>
+ <a var:href="userRootURL" class="skydockfont">Tasks</a>
</font>
</td>
</tr>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/mail" class="skydockfont">New Email</a>
+ <a var:href="userRootURL" class="skydockfont">New Email</a>
</td>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/mail" class="skydockfont">Inbox</a>
+ <a var:href="userRootURL" class="skydockfont">Inbox</a>
</td>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Preferences</a>
+ <a var:href="userRootURL" class="skydockfont">Preferences</a>
</td>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/downloadBookmark" target="private_desktop" class="skydockfont">Home</a>
+ <a var:href="userRootURL" target="private_desktop" class="skydockfont">Home</a>
</td>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/downloadBookmark" target="public_desktop" class="skydockfont">Desktop</a>
+ <a var:href="userRootURL" target="public_desktop" class="skydockfont">Desktop</a>
</td>
</tr>
<tr>
<td valign="middle">
- <a href="/OpenGroupware/x/dock" class="skydockfont">Logout</a>
+ <a var:href="userRootURL" class="skydockfont">Logout</a>
</td>
</tr>
</table>
<tr>
<td valign="top" align="left">
<font class="defaultfont"><var:entity const:name="copy"/>
- 2000-2004 <a href="http://www.skyrix.com:80/knoppix/skyrix/" target="SKYRIX">SKYRIX Software AG</a>.
- We welcome your
- <a href="http://www.opengroupware.org/en/feedback.html" target="feedback">feedback</a>.
- </font>
+ 2000-2004 <a href="http://www.skyrix.com:80/knoppix/skyrix/"
+ target="SKYRIX"
+ >SKYRIX Software AG</a>. We welcome your <a href="http://www.opengroupware.org/en/feedback.html"
+ target="feedback"
+ >feedback</a>.
+ </font>
</td>
<td valign="top" align="right">
<font class="defaultfont">
- No sessions required! ;-)
- </font>
+ No sessions required! ;-)
+ </font>
</td>
</tr>
</table>
# $Id: Version,v 1.1 2003/11/24 01:24:40 helge Exp $
-SUBMINOR_VERSION:=1
+SUBMINOR_VERSION:=2
# 1.1.0 requires NGObjWeb 4.2.202