Support » Plugin: Posts 2 Posts » [Plugin: Posts 2 Posts] Feature Suggestion: Front End Connections & Drafts

  • I think that it would be cool to have some functionality built in where you could let users enter in connection information on the front end, similar to a user tagging system, and then have the connection enter some sort of ‘draft’ mode, awaiting site moderation.

    I know I could roll my own solution for the interface, though it’d be great to simply use the one from the admin page since it works great, plus the front end would stay up to date with any changes to the plugin. The difficult part is figuring out how to put it into ‘draft’ mode. The only thing I can think of without hacking the install is to double all my ‘p2p_register_connection_type’ calls and create duplicate draft versions. Then as users submitted connections, it would add to the duplicate, then I could iterate over those and change the connection type to match the original whenever they were approved.

    Is this something that you’d be interested in adding to core? Would you have any suggestions about how to approach the problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author scribu


    I do not intend to add any front-end UI, because it would be very difficult to make it work with any theme out of the box.

    The ‘draft’ mode is interesting, though. Ideally, you should be able to do p2p_add_meta( $p2p_id, '_is_draft', true ); and then query for those connections which don’t have that flag.

    This is not possible through the ‘connected_meta’ query var yet:

    That draft ticket looks very interesting. I’ll see how that works once 3.4 comes out.

    How difficult would it be to use the same default admin UI but just call it on the front end?

    Plugin Author scribu


    Answer: difficult.

    very good plug-in.. i also need a front-end functionality…
    same suggestions on how to do it with default theme twenty eleven?
    i’m using quick post widget to insert custom post type in front-end.

    thanks a lot for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Posts 2 Posts] Feature Suggestion: Front End Connections & Drafts’ is closed to new replies.