[OGo-Developer] accessing telephone numbers of team members in OGOGroupsPage

Sebastian Reitenbach developer@opengroupware.org
Sat, 10 Mar 2007 13:18:30 +0100


Hi,


developer@opengroupware.org wrote: 
> Hi Marcus,
> 
> thanks for taking time answering my basic questions.
> > 
> > This is done via a label association. First, you have to make sure  
> > that the label namespace is properly defined in your .wox template,  
> > which means, that in your top level XML element this should be  
> > defined: xmlns:label="OGo:label".
> > 
> have added the namespace to the header.
> 
> > Then, a binding like this will do the trick:
> > 
> > <var:foreach list="account.telephones" item="telephone">
> >                  <var:string label:value="$telephone.type" / 
> >  ><html:br /><var:string
> > value="telephone.number" /><html:br />
> >              </var:foreach>
> > 
> with the added line in the header, your example works up to resolving the
> telephone type to 
> e.g. 01_tel, but still no last resolving and usage of the values in the
> GroupsUI.strings 
> file.
> <var:string label:value="$telephone.type" />
> the same as if I would use this:
> var:string value="telephone.type" />
> 
> I have an 01_tel statement in the GroupsUI.strings file, but it is not
resolved.
> I see that 
> this file is used, because when I change the tab name in there, then it
changes
> in the webui 
> too. I also tried lots of other variations of accessing/resolving the
> telephone.type. I found 
> a similar usage of the key resolving in LSWScheduler/LSWAppointmentEditor.wox,
> therefore I 
> tried sth. like this:
> <var:string label:value="labels.$telephone.type" />
> but it did not helped.

I also tried a 
<var:string label:value="labels.$telephone.type.stringValue" />
but I think this only makes a difference on non string objects, as I have seen
no difference 
to before.

> 
> does there exist a good document explaining the inner workings of the wox
> templates, 
> explaining the different namespaces that can be defined in the header and how
> they are used 
> at all in the main document? on the opengroupware.org pages I only find some
> very basic 
> examples like this
one:http://sope.opengroupware.org/en/docs/snippets/wox.html,
> and on the 
> apple pages I only find these "click some times here and there and you are
done"
> xcode 
> examples and writeups. 
> 

Nevertheless, I still have not yet found all answers to my questions, but I
summarized my 
findings so far in .wox template editing here:

http://docs.opengroupware.org/Members/buzzdee/hacking 
ogo/webui/editing_wox_templates/document_view


kind regards
Sebastian