Hi all,
I created one connection to one table, listing works. I have set up editable field that works correctly if I click on this field the data are shown in CF form.
Now I need to set up a second table in same connection (use multitables) and so I have to use a model id.
I set up model id in general tab, List View Fields, edit fields, binary fields (like model_id.field:column_name). Listing is correct, but if I click on editable field of the record, the CF form is showing without data in fields.
Where am I doing a mistake?
thanks a lot
Where do you use this code ?
You can try the $row variable in the Body box
But the correct way to do this in v5 is to use the "Images" box:
Model.field:array(1 => "path to enabled image", 0 => "path to disabled image")
Please note that array keys (1, 0), they must match the field values, and you can add more options, so if your field may have 4 different values then you can use 4 different images!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This is the latest CCv5 RC4 ?
The code should be in the "Images" box, and the images paths should be correct and absolute (with http), please try the code in the "HTML" box, that will display the image path instead, so you can make sure that its working as expected!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
yes, RC4.
I wasnt exact about code. I have this code placed in front list -> action -> view. That is part of code is viewing data.
Oh, if this code is inside the action code then please try to use $row instead of $form->data['zakladni']['0'] in your original code!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I understand u, but I use different types of models. row aktivni is in model zakladni.
which way I can use model id in syntax $row?
thx
I tried put this code to CFv5 form (view action -> custom code) and condition works, so I dont know why same code doesnt work in CCv5
Please try:
$row["model"]["field"]
or
$row["model"][0]["field"]
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.