[OGo-Discuss] Bug 1852: support creation of xmpp: field types in OGo
Sebastian Reitenbach
discuss@opengroupware.org
Sun, 25 Mar 2007 16:06:16 +0200
Hi,
discuss@opengroupware.org wrote:
> On Mar 25, 2007, at 14:54, Sebastian Reitenbach wrote:
> > Fields from type url (type = 4) are somewhere else handled
> > specially in the
> > webui, there is somewhere else always sth. like this added:
> > https://:443/OpenGroupware.woa/wo/4C874C870146066A04/ftp://
> > ftp.de.openbsd.org
> > and clicking it, will result in an "Not Found" error.
> > So url fields only seem to work with http: and https: urls.
>
> Report a bug / fix it. No reason why this shouldn't work. Obviously
> the URL parser in use is b0rked.
I'll do. I just updated Bug 1852, to allow arbitrary links to be defined as
you suggested. These fields have to be of type = 20, and have to be defined
like this:
{
defaultUrlScheme = "xmpp:";
key = jabberid;
target = "_self";
type = 20;
},
{
defaultUrlScheme = "aim:";
key = aimid;
target = "_self";
type = 20;
},
{
defaultUrlScheme = "ftp://";
key = ftpurl;
target = "_new";
type = 20;
},
{
defaultUrlScheme = "fish://";
key = fishurl;
target = "_new";
type = 20;
},
which at least makes other than http:/https: urls working. If the url fields
is supposed to handle any kind of protocol:// then the type 20 fields are
only useful for such special links like IM links.
kind regards
Sebastian