WordPress.org

Forums

[Plugin: CMS Tree Page View] Replace the built-in page manager? (11 posts)

  1. Dalton Rooney
    Member
    Posted 3 years ago #

    This plugin looks great! I have over 300 pages in my site and it is such a pain to browse through them.

    I wonder if there is anyway to just replace the default page management completely with this plugin? When I am done saving a page, WP kicks me back into the old page manager, and then I have to click back into the CMS Tree Page View again.

    Cheers on the great work!
    Dalton

    http://wordpress.org/extend/plugins/cms-tree-page-view/

  2. Pär Thernström
    Member
    Posted 3 years ago #

    That's a very good idea. I've been trying to accomplish something similar, but no success yet. WordPress does not seem to have a when-page-is-saved-then-goto-this-page-action that I can hook onto. But maybe I missed it, or there is some other solution... If anyone out there has any ideas, let me know!

    Btw, when you save a page, are you really returned to the page manager? Whenever I save a page I am returned to the page again (with a "page saved"-message at top). Just curious if I have missed something here :)

  3. Dalton Rooney
    Member
    Posted 3 years ago #

    My mistake - it kicks me back to the page manager when I trash a page, not when I save or publish one. But I do still think I would prefer the CMS Tree to be the default, for example, when I click the "Pages" tab. I have seen other plugins modify that page - I wonder if you could just hide the existing navigation somehow and add the CMS Tree navigation to that page?

    Personally, I like the plugin enough that I wouldn't mind hacking my core files to do it, although I'd rather look for a proper way to do it first, of course. I'll keep an eye out and see if I can find anything.

  4. Dalton Rooney
    Member
    Posted 3 years ago #

    I've started working on a small plugin that will hide the contents of the standard Edit page and replace it with your CMS Tree function. I think I'm close - I can see where the function is supposed to go, but it just says "Loading Tree" instead of actually showing it.

    I'm not great with AJAX, but I will dig in and continue to work on this later when I have a few moments. In the meantime, if you have any ideas about why it's doing that, I would love a push in the right direction.

    http://daltonrooney.com/files/cms-tree-page-view-helper.zip

    Thanks again!

  5. Dalton Rooney
    Member
    Posted 3 years ago #

    Actually, there was a problem on my end. That helper plugin actually seems to work! Very hacky on my part, but unless there are any problems with it I will probably use it until a similar feature is available within the plugin.

  6. Pär Thernström
    Member
    Posted 3 years ago #

    Hey again,
    just downloaded your plugin and I'm gonna try it. If I like the idea I will probably add it as an option to my plugin. No promise, but a maybe! :)

  7. Dalton Rooney
    Member
    Posted 3 years ago #

    Please be kind, the code is very rough! : )

  8. Zoinks! Graphics
    Member
    Posted 2 years ago #

    Hi Gentlemen: I commented on Par's site. How is the development of having his plugin replace the standard "Pages" admin menu item coming?

  9. Zoinks! Graphics
    Member
    Posted 2 years ago #

    I just came up with an alternate solution that seems to work on my WP 3.0.3 install!

    In /cms-tree-page-view/functions.php under "function cms_tpv_admin_menu()" I changed...

    add_submenu_page($slug, $post_type_object->labels->name . " Tree View", $post_type_object->labels->name . " Tree View", "edit_pages", "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");

    ...to...

    add_menu_page( $post_type_object->labels->name . " Tree View", $post_type_object->labels->name . " Tree View", "edit_pages", "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page", '', 1 );

    That moves the "Pages Tree View" menu item out from under "Pages" altogether.

    Then I installed the "Admin Menu Editor" plugin. I then used Admin Menu Editor to hide the "Pages" and other unneeded top level menu items, as well as renamed "Pages Tree View" to "Add/Edit Pages" for user clarity. And SHAZAM! It woiks!!

    Thus, it may actually be easier to incorporate this work-around in future versions by making your plugin a top-level menu item as listed above, then putting some code into your plugin to hide the "Pages" link. That way "Admin Menu Editor" would not be required for this to work.

    I'd appreciate any feedback you may have. Thanks!

  10. Zoinks! Graphics
    Member
    Posted 2 years ago #

    Have my suggestions for /cms-tree-page-view/functions.php edits been incorporated into the new version of CMS Tree Page View? (0.7.14)

  11. Pär Thernström
    Member
    Posted 2 years ago #

    The changes has not been incorporated. To be able to replace the built in pages manager is still something I'm looking at, but I haven't yet decided exactly how to do it. The way you propose is looking very good however.

Topic Closed

This topic has been closed to new replies.

About this Topic