• Resolved cjmclean

    (@cjmclean)


    I’ve been watching one of your videos, “Grow Beyond Posts & Pages: Introduction to Pods Framework“, where you mentioned a gym scenario where trainers teach certain classes before adding it to a schedule. Unfortunately, what you didn’t show was how to place the information collaborated between the trainers and classes onto the schedule.

    I run a media production company and what I’m trying to achieve is exactly what you omitted from your video. This is my problem.

    I have several actors working on different projects. Each actor takes on a certain role within a project. However, this actor could also work on another project taking on a different role again.

    So far, I have created a pod template for the project and another one for the actor. I’ve been able to add Actors 1 and 2 into Project 1 with no problem and it looks like this:

    Project 1 Cast

    • Actor 1
    • Actor 2

    What I’m trying to achieve is this

    Project 1 Cast

    • Actor 1 as Role 1
    • Actor 2 as Role 2

    Project 2 Cast

    • Actor 1 as Role 3
    • Actor 2 as Role 4

    How would I achieve this? What type of pod would I need to create to include Roles?

    Any help would be greatly appreciated.

    • This topic was modified 3 years, 5 months ago by cjmclean.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @cjmclean

    There is no field type for two values (actor and role) at the moment.
    You could achieve this by a so called link-table.
    This is a separate Pod with a relationship to Actor and Role.
    From the Project you relate to this Pod.

    So for a tree view of relationships you could have something like this:

    Project pod
    > Actor-Role Pod
    > Actior
    > Role

    Inline editing isn’t the most effective this way but you can use the list view to enable modal edit buttons.

    Cheers, Jory

    Thread Starter cjmclean

    (@cjmclean)

    Sorry, I’m very new to this plugin and still learning the relationships between each component.

    What is the difference between linking a pod to pod; and a field to a pod? So far, my pod structure are like this:

    Project
    -> Actor-related field
    -> Role-related field

    Actor
    -> Project-related field
    -> Role-related field

    Role
    -> Actor-related field
    -> Project-related field

    This seems to work to an extent but I’m having trouble with the output which displays all the Roles the Actor plays rather than specific Roles for certain Projects.

    Just to make it easier to understand what I’m trying to achieve, think of an IMDB-like structure. 🙂

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @cjmclean

    I understand what you are trying to build but there is simply no other way to make a flexible Author<>Role relation within a project since that would require two relationships within one field.
    That is why the link-table is needed as I mentioned.

    And sorry, I now see the formatting of my example went all wrong.
    New try in code block:

    Project pod
        > Actor-Role Pod
            > Actior
            > Role
    

    Cheers, Jory

    Thread Starter cjmclean

    (@cjmclean)

    Forgive my ignorance but how to I create the link table? Is there a tutorial I can read linking pods with pods? My understanding of relationships is only limited to field to pods.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Isolated Third relationship’ is closed to new replies.