Dave Schoorl wrote: > I am still struggling with this. I am now at the stadium where I get a > drop-down list with all the content nodes from the table I want, but I > cannot control the value (field) that is displayed in the dropdownlist > of the editor. > > The database table has two columns that I defined: publicationtype (1 > letter code) and a publication (50 chars description). Whatever I do, it > always shows the 1-letter codes in the dropdown list, BUT I WANT THE 50 > CHARS DESCRIPTION! (sorry) I use the following data type definition: > > <datatype base="node" xmlns="http://www.mmbase.org/xmlns/datatypes"> > <enumeration> > <query type="publicatietype" display="publicatie" > xmlns="http://www.mmbase.org/xmlns/searchquery" /> > </enumeration> > </datatype> > > The searchquery.xsd isn't well documented, so I try several things, like > providing query-attributes fields="publicatie", name="publicatie", > value="publicatie" etc. I also tried to add the field-element <field > name="publicatie" /> with no avail. > > Can someone please help me with this, because it is costing me too much > time already.
For nodes the used display value is the 'gui' value of the node IIRC. So you should change that in the builder to return the other field. Default it is the field with the lowest 'list' positition IIRC. So simplest would be to make that so, you don't need to code java then. Actually, gui is something else (it may e.g. produce HTML), so we should also make it possible to use another function there (optionlistgui or so), but that is as yet not supported. The main draw-back is that it is, I presume, immpossible to make drop-down with image-nodes or url-nodes or so because those typically produce real markup as GUI. greetings, Michiel -- Michiel Meeuwissen mihxil' Peperbus 107 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
