|Eric van der Vlist 5802afbdd5||2 年之前|
Contributors: JoelStarnes Donate link: http://joelstarnes.co.uk/donate/ Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide, Requires at least: 2.1 Tested up to: 5.4.1 Stable tag: 184.108.40.206
Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows for quick sorting, hiding and organising of page parenting structure in a simple intuative manner.
Customise the order your pages are listed in and manage the parent structure with this simple ajax drag-and-drop administrative interface with an option to toggle the page to be hidden from output. Great tool to quickly re-arrange your page menus.
Checkout the example page: http://joelstarnes.co.uk/pagemash/example Feedback is greatly appreciated: http://joelstarnes.co.uk/contact
pageMash works with the
wp_list_pages function. The easiest way to use it is to put the standard WordPress pages widget in your sidebar. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done.
You can also use the function anywhere in your theme code. e.g. in your sidebar.php file (but the code in here will not run if you're using any widgets) or your header.php file (somewhere under the body tag, you may want to use the depth1 parameter to only show top level pages). The code should look something like the following:
<?php wp_list_pages('title_li<h2>Pages</h2>&depth=0'); ?>
You can also hard-code pages to exclude and these will be merged with the pages you set to exclude in your pageMash admin.
The code here is very simple and flexible, for more information look up
wp_list_pages() in the Wordpress Codex: http://codex.wordpress.org/Template_Tags/wp_list_pages
If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact
Try opening up your WP admin and browse to your pageMash page, then take a look at the page source. Check if the prototype or scriptaculous scripts are included in the header. If so then the next step is to track down the offending plugin, which you can do by disabling each of your plugins in turn and checking when the scripts are no longer included.
Do I need any special code in my template = No. As of v1.0.2 you no longer need to add any code to your template. PageMash adds a filter to the wp_list_pages() function and will also work just fine with the pages widget.
Which browsers are supported = Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and Opera. (NB in IE you might need to use the page name as a drag handle.)
Setting up the page widget in the old WP admin.
pageMash is available in:
If you'd like to translate pageMash into your own language get in touch and I'll be happy to add it in.