Herman Reintke <[EMAIL PROTECTED]> wrote:
>     
>    1/ How can I access the addtional fields from CNTData and CNTImage. Some
>    kind of casting ?
I would recommend to use 'real' objects as much as possible, which are
alwyas of the 'real' type.

I think that if you had used mm:relatednodes, that the extra fields would
have been useable.

<mm:relatednodes type="CNTVFL" role="posrel" orderby="posrel.pos">

  <mm:nodeinfo type="nodemanager"><mm:compare value="CNTData"><mm:field
name="cntdatafield" /></mm:compare></mm:nodeinfto>

If you for some reason really have to use 'clusternodes' than you'd have to use
<mm:node element="CNTVFL" to convert to real nodes of the right type (with
_all_ fields, so also those which are present because of extension).



>    2/ I want to create different output withthe different types. How can I
>    setup conditional tags or use the JSTL tags in conjunction with the mmbase
>    tags ?

There are several 'condition' tags inside the mmbase-taglib like mm:compare.
Cooporation with other taglibs or JSP2/EL variables is limited, but
more conformation in this field is on our TODO.

 Michiel


-- 
Michiel Meeuwissen
Mediacentrum 140 H'sum 
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to