[OGo-Users] links to documents

Sebastian Reitenbach users@opengroupware.org
Wed, 09 Apr 2008 07:38:09 +0200


users@opengroupware.org wrote: 
> users@opengroupware.org wrote: 
> > On 08.04.2008, at 12:30, Sebastian Reitenbach wrote:
> > > Is there a way for an ordinary user to retrieve the DocumentId from a
> > > docuement via the OGo WebUI, or even better, the complete link to the
> > > docuement?
> > 
> > Don't know what you want to do but the documentId is not a user  
> > accessible ID. In fact its not a valid marker since there can be  
> > multiple 'documentIds' per document (check-out copy, versions, etc).  
After taking a closer look to the code, I figured out, how to get what I 
want. In SkyProject4DocumentViewer.m I found the method objectUrlKey, so 
that I only need to use this in the html/wod files. Unfortunately, the 
stringByEscapingURL in this method is too much. The question mark was 
escaped, and that caused problems. When I click on the link, ogo is unable 
to handle it. Therefore I created a method objectUrlKeyUnEescaped, without 
the stringByEscapingURL, and this works just fine.

right now, I've sth. like this in the html file:
              <tr>
                <td align="left" valign="middle" colspan=2>
                <#TitleFont>
                <a 
href="https://www.l00-bugdead-prods.de/OpenGroupware/<#DocLink/>"><#DocId/></a>
                </#TitleFont>


and this in the .wod file:
DocLink: WOString {
        value = objectUrlKeyUnEescaped;
//      value = objectUrlKey;
}

DocId: WOString {
        value = documentId;
}

Is there a possibility to just use the objectUrlKey, but without the URL 
escaping?

kind regards
Sebastian