12 Posts
webuniverse
10 years ago
5
Topic

Hello 

I have a problem with the Dynamic checkbox plugin.

I use this to read the Categories from the Database.
Once too read the Categories from "parent_id >= 31" this works perfect. But the second, where i read an other parent_id reads only 1 item. Even if the field has the same configure as the first one. Also with the same parent_id.

I use it in the List & Search Type > Item

Thanks for help

Corinne

Code (var_dump($field);) on checkbox_dynamic.php > onCCK_FieldRenderContent

The correct one

 

The wrong one

Field Config

Get a VIP membership
4229 Posts
Kadministrator
10 years ago
2
Level 1

Hi,

what you amrked as yellow is field value, which can be set to any or nothing by user (which checkboxes were selected by user) on the form and has nothing to do with the query. If you look at options which are generated from query - they are exactly the same in both fields as they should be.

12 Posts
webuniverse
10 years ago
1
Level 2

Hi,

I have defined one field where user can select checkboxes in the form. this field is based on multiple levels of joomla categories.
Cat1
- Cat1.1 [checked]
- Cat1.2 [checked]
- Cat1.3
Cat2
- Cat2.1
- Cat2.2 [checked]

Now for showing the selected items I need to split the user selection based on the parent category into multiple output fields:
Field A
Cat1.1, Cat1.2

Field B
Cat2.2

So I have defined one field per Category for printing the selected values. This field uses the same type and the same database field but the WHERE condition is changed. The problem is, that these fields only show one entry, not all (e.g. only Cat1.1 is shown, Cat1.2 is missing)

4229 Posts
Kadministrator
10 years ago
0
Level 3

Obviusly field stops if it contains a value that does not exist in options, not exactly a bug as this field is not made to be used this way. Try using select dynamic for display (I'm not sure that one will work either, jsut an idea..).

12 Posts
webuniverse
10 years ago
1
Level 1

OMG ... i found the Problem :-(

It was a SPACE after the Comma on the Separator Field....

TGIF :-)
Corinne

4229 Posts
Kadministrator
10 years ago
0
Level 2

Nice one :) Good that you found it.

Get a Book for SEBLOD