A quick answer, I think you need to define a relation (rel_type I believe.)
of the type parent/child between the two builders. And then you can specify
the role parent/child in getRelations. If I am not mistaken.

Greetings,

Sjoerd de Heer

S&R Solutions
Diezestraat 24
7523 SN Enschede
http://www.sr-solutions.nl
----- Original Message ----- 
From: "Curtney Jacobs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 9:05 AM
Subject: How to get a specific Relation object?


>
> First, let me apologize for all of the questions I have been asking. I am
> sorry if I am wearing out my welcome. However, I need to get up to speed
with
> mmbase real quick.
>
> It seems that the only way to get a specific node's relations is to call
one
> of the getRelations methods on that node. which either return a list or
> vector containg the relations. However, I want a specific child node that
is
> related to a parent node. There will only ever be one chid of that
relation
> created for that parent. (one-to-one)
>
> The situation is that I wiould like a "static link" (a url that represent
the
> static location of my publication on disk) Every publication will have
> exactly one static url or one relation named "staticlinkrel". How do I
> dynamically retrieve that url in code without having to iterate/filter
> through a list or vector of relation objects? I know there will only be
one
> object of that relation anyway.
>
>
> The other potential (easier) solution is to create a field in the
publication
> builder that will caputre the publication static url and then do something
> like the following:  node.getStringValue("gui(staticlnk)");
>
>
> Thanks inadvance,
>
> Curtney
>


Reply via email to