WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
Would this work to use FEE to post a new entry? (6 posts)

  1. youngmicroserf
    Member
    Posted 3 years ago #

    Hi -

    I'm in the process of setting up a site with member interaction and the client would really prefer to keep the members out of the backend. I'm using the modified "user frontend"-plugin to manage posts and profiles in the front-end, and FEE to edit existing posts, but so far, publishing new posts is limited to using a simple form. So I was wondering about the following - I'm adding a "new entry" button to the admin bar, and if that button would not link to the form page, but call a script that would not output anything, but use insert_post with some standard content and then forward to the preview page of the just created post, wouldn't the FEE be able to edit it?

    To the editor, it seems this would be regular editing, but to the user it would look like editing a new post.

    Is my assumption correct? Would this work?

    Thanks for a brief tip before I start coding it :)

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, Front-end Editor can handle draft posts.

    Interesting approach, by the way.

  3. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Here's a similar approach that I might consider including in the plugin:

    Make a page and assign it a custom template:

    // Template Name: Add Post
    
    fee_inject_dummy_post( $replace_first_post = true );
    
    while ( have_posts() ) : the_post();
    
    ...
    
    endwhile;

    The only special thing about it would be the call to fee_inject_dummy_post(), which would do some trickery to the $wp_query object.

  4. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Ah, yes, I remember why I hesitated to add this:

    You still have to double-click on each post element to edit it, instead of all at once, making it a sub-optimal workflow.

  5. youngmicroserf
    Member
    Posted 3 years ago #

    Hey Scribu -

    You still have to double-click on each post element to edit it, instead of all at once, making it a sub-optimal workflow.

    that is a fair point... in my case I suppose that may even be preferable. But for more general applications, I suppose you're right. Would it be impossible in the current plugin logic to activate and save all FEE elements simultaneously?

  6. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    It would require some non-trivial modifications, but it's possible.

    The biggest problem would be how to automatically position the Save and Cancel buttons in this case.

    This might not be so hard with the Aloha editor that I'm thinking of integrating. See http://wordpress.org/support/topic/plugin-front-end-editor-inheritance-site-section-design

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic