On Saturday 16 November 2002 10:25 am, Joost Nelissen wrote:
> Hi,
>
> Yet another question, and thanks for the help sofar;
> Is there a way to make a relation unidirectional in the editors (the
> destination-object being visible to the source but not the other way
> around) but still keep the relation itself bidirectional by nature?
>
> We are building a site that has a lot of complicated relations. I'd
> like to make it easier on the web-editors by giving them a more easy
> to understand parent-child like interface in the editors, but still
> be able to get all relations between objects bidirectionally in the
> site. Is this possible?
What editors are U using?

bidirectonal relation still have a "source" and a "destination"
so in theory it possible. accessing that information is a bit
difficult
I have created a small "demo jsp"

hope this helps

>
>
> Thanks,
> Joost Nelissen

-- 
killall -9 mozilla-bin ;killall -9 mozilla-bin ;mozilla &
<%@page language="java" contentType="text/html;charset=utf-8" %>
<%@page import="org.mmbase.bridge.*"%>
<%
        Cloud cloud = ContextProvider.getCloudContext("local").getCloud("mmbase");
        RelationManagerList relationManagerList = cloud.getRelationManagers();
        RelationManagerIterator iter = relationManagerList.relationManagerIterator();
%>

<% while(iter.hasNext()) {
        RelationManager relationManager = iter.nextRelationManager();
%>
        <% if (relationManager.getSourceManager().getName().equals("news")){ %>
                there is a relation from <%= 
relationManager.getSourceManager().getName() %> to
                <%= relationManager.getDestinationManager().getName() %><BR>
        <% } %>
<%      } %>

Reply via email to