Ernst Bunders wrote:
> shouldn't it be more logical to have something like:
> 
> <mm:listnodes type="news" id="n">
>       <mm:node node="n:author">
>               <!-- do stuff -->
>       </mm:node>
> </mm:listnodes>

This is possible already.  It goes like this:
  <mm:listnodes type="news">
    <mm:node element="author">
      ..
    </mm:node>
  </mm:listnodes>

The drawback is tha tif you do a mm:relatednodes at '..' it will do many
new queries. Of course, we could try to automaticly update this, but
still we need the possibility to query that then (which cannot be done
now).

> Your syntax seems to suggest that you can access the author without 
> using the news, which is a bit odd, becouse the author is only relevant 
> (ie an author) in respect to this news node.

I meant that 'author' is a field of news, namely a foreign key ('node
field') to a people object.

You cannot use a field of a node without the node.

Of course this also means that the node cannot have more then one author
(because it has only one author field). If that is not a problem, you
could use it, and simplify things. The only problem is that you cannot
query them with one query, while that is possible in SQL. So, that was
what I was suggestint a solution for.

Michiel
-- 
Michiel Meeuwissen                  mihxil'
Peperbus 111 MediaPark H'sum          [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to