Forums

multidimensional Field?

Breakbeatz 21 Mar, 2014
Hello again,

now I got trouble with CC5:
I connected an table build by jse event. There I got one row "zj_custom_details" where the input is like "{"zj_organization":["Musterfirma"],"zj_address":["Musterstr. 2"],"zj_city":["Musterstadt"],"zj_zip":["12345"],"zj_phone":["0123456789"],"zj_name":["Michael Musterfrau"],"zj_email":["Mmusterfrau@mustermail.de"]}".
This I would like to change in the view of cc like "...Musterfirma, Musterstr.2, 12345 Musterstadt, 0123456789, Mmusterfrau@mustermail.de" or in different new rows like: Organisation | Adresse | ZIP | City | ...

I tried it with "explode" php in the List Display - table - custom - body, but I don't now, if my code is correct or if it is the general correct way...
Help me!!!! :-)

Thanks a lot,

Tobias
Max_admin 02 Apr, 2014
Hi Tobias,

Sorry for the late answer, the row data are under the variable: $row, and I think your field data are json encoded, so you may try this:
json_decode($row["zj_organization"]);


That will return an array though, so you need to process it and then use "echo" to print.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.