Hi,
I'm wondering about the field_related_to for an add-on I'm working on. In Playa fields it seems to be the channel_id of the child in the relationship, but not always; sometimes it's a channel_id that's nothing to do with the relationship. I've gone in and updated the Playa field in question but the field_related_to value doesn't change. Can you explain what field_related_to does? Or if it's been deprecated in Playa, presumably the child's channel_id is somewhere in the hash that is field_settings?
Thanks,
-Adam
-
-
-
-
Hey Adam,
Yeah Playa field settings are saved in the field_settings column (but EE's fieldtype API takes care of the details there; Playa never looks at that column directly).
That field_related_to column is only used by the built-in Relationship field. So if you see some rows with a value in that column, they were probably originally Relationship fields. -
-
Thanks Brandon for helping with this slightly obscure question.
In case anyone's interested, this info is set in ft.playa.php at lines 655-674. It's serialized and base64_encoded at line 669 and can be decoded and unserialized using unserialize(base64_decode("{field_settings}")).
-Adam -
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
