Ted Vinke <[EMAIL PROTECTED]> wrote:
> * Editwizards
>
> * Is it possible to have an editwizard generate a radiobutton of a
> checkbox? If so, can anybody point me to an example?
I think you need a small extension, for which an example can be found in:
/mmexamples/editwizard/newftype/ of the distro.
> * Is it possible to generate an optionlist dynamically? The
> examples I've seen only display a static list hardcoded in the
> .xml file directly. I need to display e.g. een few related items
> in the list.
That is IIRC possible with a terrible xpath in the optionlist's definition.
> * Is it possible to set the 3 dropdown-boxes of an eventtime/date
> field a x days/weeks in the future or in the past? Or prevent it
> from setting the current date by default a.k.a. making it
> optional/leaving it empty
I'm not sure about that. I think it might be hard. The concept of 'unfilled'
fields ('null'), is often a bit tricky.
> * Datasource/population
>
> * In a population .xml file I would like to place some html-text
> between constructions such as <strong></strong> etc. but parts
> between tags seem to be skipped after insertion. Do I have to use
> a special attribute such as "escape=p" or something (I found
> somewhere in the documentation, but somehow only when used in
> conjunction with the <mm:write> tag?)
Things like escape='p' are possible on all 'writer' tags (read 'most tags
that produce output are 'writer' tags), so only mm:write itself.
escape='p' is not meant for fields which contain HTML but for fields that
don't.
> <height>
> He's a very <strong>tall man</strong>
> </height>
>
> In this case "tall man" is being skipped and I want to prevent
> that from happening.
I suppose you refer to 'apps1' XML's. In that case you should escape, (<
> and so on) or use a CDATA section. E.g. see
WEB-INF/config/applications/RichText/xmlnews.xml.
> * Relations
>
> * The documentation says that a meximum number of relations ('max'
> field in typerel) is not yet implemented in MMBase. Does that
> mean the only way to implement an 1-to-1 relation is to use
> "maxoccurency='1'" in the editwizard in the relevant field of
> which I want only to allow one item?
Yes. Indeed the max-field of typerel is not implemented, and you can only
simulate it by customized editors, like editwizards.
> Could someone help me out with these questions? I'm hope I'm in the good
> place to ask them.
Yes, this seems the right spot, though perhaps also '[EMAIL PROTECTED]' might
have been possible.
Michiel
--
Michiel Meeuwissen
Mediacentrum 140 H'sum
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
[] ()