| Index
» Projekty
» phpMyEdit
» Fórum
» Multiple selection: how to use |
 |
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-02-27 15:25
Návrat hore
Odpovedať s citátom
|
That is actually desirable behaviour. If it will be possible to have multiple selects also on change record page, how these entries will be stored in database? And how they will be extracted for read purpose? In other words, if you want to have multiple selections on add/change/copy pages, you have to have MySQL datatype set to "SET" and list particular language possibilities there. I hope you get the idea.
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-03-10 23:44
Návrat hore
Odpovedať s citátom
|
Yes, see "Simple Restrictions" section in manual:
http://www.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html
You have to create SET datatype MySQL column. For example:
column_name set('value1', 'value2', 'value3') default NULL
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-03-11 18:42
Návrat hore
Odpovedať s citátom
|
The
['values2']
have two goals:
- To add possibility to extend table lookup.
So, for example, you have articles table and you are doing table lookup to authors table. But you want to have possibility to not to assign author to article; that you can create special entry in authors table marked as
no author
or you can define
['values2'] => array(0 => 'no author')
. If you select
no author
in listbox, value of of will be written in DB. Of course you can have more key/value pairs defined in
['values2']
.
- Second goal is to have possibility of storing another value into datatabase than text which appear in listbox. As you can see in documentation, something like the following example is possible:
| Kód: |
['values2'] => array(
'key1' => 'This is long description appear in listbox',
'key2' => 'Yet another long description'
)
|
Keys 'key1' and 'key2' will be stored into database according to selected long descriptions in listbox selection.
If description above is not clear, just ask for more info. From my point of view, is
['values2']
extremly usable feature. :-)
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-03-11 18:47
Návrat hore
Odpovedať s citátom
|
And yes, regarding to you language related question, this is possible:
| Kód: |
['values2'] => array(
'EN' => 'English',
'DE' => 'Deutsch',
'ES' => 'Espanol'
)
|
phpMyEdit 5.3 release will go out after CSS classes policy will be implemented. I already started with this issue, but actually it is not the job I like to do so much. But phpMyEdit definitelly needs to have this implemented... I see it in the end of March or in similar time. You can always use CVS version.
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-03-13 00:34
Návrat hore
Odpovedať s citátom
|
Uhh, this is a bug! Feel free to submit into tracker... I will try to find time for fix.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|