2

I'm using Safecracker to edit entries for the Channel Books. Suppose I have another Channel Publications.

I am using a Playa field to create relationships.

My understanding is that you can only use Playa to create relationships between existing entries. Is there a way to create a Publication entry and at the same create a relationship to the Book entry we are editing / creating?

1 Answer 1

1

Playa can only be used to create relationships between entries that actually exist in the EE database.

2
  • Hmmm that is what I suspected. I think I will end up going with this solution: Use Safecracker to create a form for adding a Publication (if it doesn't already exist). Then upon successful insertion of this Publication data into the database I'll have to perform some SQL query to create this relationship correctly. Any advice on doing this? I was going to use the safecracker_submit_entry_end hook
    – sifxtreme
    Commented Jan 18, 2013 at 15:41
  • Best to start on this code, then ask specific questions when you hit walls or post as a new question for direction.
    – Anna_MediaGirl
    Commented Jan 18, 2013 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.