Re: dbforms2 - chooser, tableprefix
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 17.4.2005 15:10 Uhr, Matthias Dieke wrote: > Hi, > > > today its my first time that I play with dbforms2. > > Saveing content works fine. Now I like to update the content. Therefor I > have to use dbform:chooser. Do I have??? > > > My table has the following fields: > > id int > position - varchar > uri -varchar > > > How has the chooser looks like? > > <dbform:chooser namefield="position" wherefields="id" orderby="l" > limit="35"/> ???? "namefield" is the fields which are displayed in the dropdown (you have to use the sql function concat() if you want to display more than one field there, so for example "concat(uri, ' - ' ,id)") "wherefields" is in which fields it should search, comma seperated "orderby" is which field should be used to sort the result for the output "limit" is the max amount of results, which should be displayed in the result for blogposts it looks for example this way: > Where do I have to define the tableprefix if I use an other prefix like > the bxcms-prefix? Uuh, no idea if this is already an option somewhere, philipp should know, otherwise we have to implement it somehow. BTW, your computer clock is 3 months off :) chregu -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms