When opening an existing custom profile type for editing, the ‘Sync from…’ dropdown in custom fields whose type is ‘linked_profile’ will be blank instead of preset to whatever value it is supposed to have. If you make any changes at all you have to reset all those fields to the proper value before saving. It’s fun the first couple times but after that it becomes annoying…
Thanks for letting us know, and sorry for the hassle G. (I don’t know that anyone else is currently using the “Linked Profile” Profile Field Type, which could explain why this wasn’t caught earlier.)
To make sure I’m not missing anything: you’re not actually attempting to sync the “Linked Profile” field with an external data source, right? It’s just causing issues because it’s on a profile type that is syncing certain other fields, yes?
right - not syncing with data source but rather syncing to other profiles of a different type. In this case we have 2 fields in the ‘Programs’ profile type that sync to profiles in the ‘Faculty & Staff’ type.
Hm, can you share a screenshot of the settings? I want to make sure I understand what’s syncing from a external data source vs linked to other LW profiles. Or, if the config feels in any way sensitive or proprietary, we can take it to Request Help or Personalized Email Support. Thanks G!
Nothing proprietary. In the screen shot, ‘Program Coordinator(s)’ is set the way it should be to save the profile type. On the field below, ‘Program Faculty’, it should be set the same way to save, but shows how it appears when you open the profile type for editing. This is our ‘Programs’ profile type id=5…
for us it shows up as a field type option in the dropdown when you define a new custom field in a profile type (see my screen shots above). It allows you to link one or more profiles of the same or another profile type to the profile you are editing. For example, in our program profile type, if the faculty for a particular program are different than the regular department faculty, we can specify them individually for that program, which is especially helpful for interdisciplinary programs. On the data side the field values turns out to be the id of the selected linked profile, or, if there are multiples, a series of ids separated by the pipe character.
Thanks Jon – it’s currently a LW3 feature that’s been available only for beta-testing thus far. If you’d like to help us testing that out on your dev site, you could give it a try by adding $_LW->CONFIG['ENABLE_LINKED_PROFILES']=true; to your livewhale/client/global.config.php.
On the front-end, linked profile fields come through as a comma-separated list of IDs, so front-end displays involve creating a nested profile widget with <arg id="id">{profiles_123}</arg> where profiles_123 is the linked profile field.
I’m not 100% certain it’s on every release track of LW (might only be experimental track), so if you try this and it doesn’t work, that could be why, but hopefully this might present a developer-friendly option to tinker with until we release it more broadly in LW3.
I tried adding that to the global config on dev, but no luck. I guess we aren’t on a release track that gets that. Looking forward to that feature in LW3.