Support » Plugin: Pods - Custom Content Types and Fields » Modifying Relationship presentation in Admin

  • Resolved johngsanderson

    (@johngsanderson)


    I’ve created two CPTs: Documents and Meetings. Documents will organise the 9000+ documents for the site. Meetings may require some, one or none of the corresponding Documents.

    I’ve set up a POD for Meetings with a Relationship with Documents. This produces a list of all Document CPTs any of which can be “attached” to the Meetings CPT. I need to modify the presentation, as giving a massive list of some 9000 Documents is madness.

    Ideally, I’m hoping there’s a hook I can grab to rework how the list of Documents is presented in the Meetings CPT edit page. Failing that, which function should I be modifying to intercept how the Documents CPT are presented.

    John Anderson

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @johngsanderson
    I’m not sure what you mean with “modify the presentation”, can you elaborate?
    Cheers, Jory

    Okay, currently, the list of documents shows up like this: https://i.imgur.com/AFbJFbB.png.

    If I have 9000 Document posts, this is going to be unwieldy. What I need to do is replace the default presentation with some sort of search and filter functionality so that the Admin can quickly get to the Document or Documents they want connected to the Meeting.

    Does that make sense?

    John

    Plugin Author Jory Hogeveen

    (@keraweb)

    Please try the “list view” type for relationships in the advances field settings.
    I’m sure that will suit your needs better!

    Cheers, Jory

    Hmm, well it _is_ better. I’ll see what the client says. They might be okay with this.

    Is there no way to take a poke at the interface? I can imagine that the client would prefer to filter by categories rather than searching by, what, title?

    Thanks for your help, Jory.

    John

    Plugin Author Jory Hogeveen

    (@keraweb)

    It searches by title (display value), correct.

    You can create your own custom UI outside of Pods if you want off course, no use for filters there, just disable the UI in the Pod field settings and create your own metabox.
    You can still use Pods to handle storage: https://pods.io/docs/code/pods/save/

    Marking this topic as resolved as the above is about custom development.

    Cheers, Jory

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.