Timeline for How to store json data in a custom fieldtype so that it's data can be referenced as attribute values?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:51 | history | edited | CommunityBot |
replaced http://craftcms.stackexchange.com/ with https://craftcms.stackexchange.com/
|
|
Oct 12, 2014 at 22:07 | comment | added | Douglas McDonald |
I changed the attribute type to mixed and am sending the field value as value and trying to reference it as {{ value.id }} or {{ value['id'] }} but obviously getting an error — Impossible to access a key ("id") on a string variable ("Stripe_Customer JSON:...
|
|
Oct 12, 2014 at 21:57 | comment | added | Douglas McDonald | I guess what I was looking for is a way to send it over as a single object with object attributes, rather than having to define the object before I send it. It's a rather complicated object, with sub arrays of additional objects, etc. coming from a third party service. And some of the attributes are optional and will not always be defined, etc. | |
Oct 12, 2014 at 20:34 | history | edited | Fred Carlsen | CC BY-SA 3.0 |
fixed php array
|
Oct 12, 2014 at 19:46 | history | answered | Fred Carlsen | CC BY-SA 3.0 |