Simple Page Ordering

Beschreibung

Sortiere deine Seiten, hierarchischen Post-Types oder Custom Post-Types mit Seiteneigenschaften einfach mit Drag & Drop auf der jeweiligen Übersichtsseite.

Einfach Drag & Drop der Seite in die gewünschte Position. So einfach geht das. Es gibt keine neue Admin-Seite, eine Einstellungen. Einfach mit Drag & Dop auf der Übersicht der Seiten oder Post-Types.

Das Plugin verwendet Berechtigungen. Nur Benutzer mit der Berechtigung zum Bearbeiten der Seiten von anderen (also Adminstratoren und Redakteure) können die Inhalte umsortieren.

Integrierte Hilfe eingeschlossen: klicke einfach auf den Tab „Hilfe“ rechts oben im Fenster.

Bitte beachte, dass das Plugin mit Internet Explorer 7 und älter nicht kompatibel ist.

Unterstützung

Wir würden uns über eine Teilnahme an der Enwicklung auf GitHub freuen.

Screenshots

  • Ziehe die Seite in die neue Position
  • Fortschrittsanzeige

Installation

  1. Installiere entweder über das WordPress.org Plugin Verzeichnis, oder lade die Dateien via FTP auf deinen Server.
  2. Aktiviere das Plugin im ‚Plugins‘ Menu in WordPress.
  3. Alles ist bereit zum Umsortieren deiner Inhalte

FAQ

Warum kann ich meine Beiträge nicht umsortieren?

Beiträge werden nicht nach Menüreihenfolge sondern nach Datum sortiert. Theoretisch kannst du eine Sortierung der Beiträge nach Menüreihenfolge durch diese Ergänzung in deinem Code (in der functions.php des Themes oder mit einem Plugin) erreichen:

add_post_type_support( 'post', 'page-attributes' );

Können meine Custom Post-Types die Vorteile dieses Plugins nützen?

Ja. Es gibt zwei Möglichkeiten, den Support für Simple Page Ordering zu aktivieren.

Setzte beim Registrieren des Post-Types idealerweise hierarchical auf true – damit wird automatisch nach Menüreihenfolge sortiert.

Alternativ inkludiere page-attributes, wenn du die vom Post-Type unterstützten Eigenschaften definierst. Damit wird eine Sort by Order Option zu den Filtern oberhalb der Dropdowns hinzugefügt. Wenn du nach Reihenfolge sortierst, kannst du den Inhalt mit Drag & Drop verschieben.

Abschließend kannst du den simple_page_ordering_is_sortable Filter nützen, der das Ergebnis der Standardüberprüfung und den Post-Type Namen übergibt, um das Standardverhalten zu überschreiben.

Ich möchte meinen nicht-hierarchischen Post-Type sortierbar machen. Hilfe!

Siehe die beiden vorstehenden Antworten – füge einfach page-attributes zur Liste der unterstützten Post-Type Eigenschaften hinzu.

Ich habe meine Beiträge neu sortiert, aber im Frontend meiner Website hat sich nichts geändert!

Dieses Plugin ändert kein Verhalten im Frontend, es ändert nur die in WordPress gespeicherte Menü-Reihenfolge.

Wenn du eine Liste der Seiten oder Custom Post Types in dieser definierten Reihenfolge anzeigen möchtest, dann musst du im Post Query denorderby-Parameter auf menu_order ändern (falls das noch nicht geschehen ist).

Ich habe die Reihenfolge geändert und alles schien zu funktionieren. Nach dem Aktualisieren der Anzeige erscheint aber wieder die alte Reihenfolge.

Das bedeutet wahrscheinlich, dass der AJAX Aufruf – der serverseitige Code – fehlgeschlagen ist, nachdem du den Inhalt in eine neue Position verschoben hast. Manche Shared Server machen ein striktes Timeout und begrenzen die Anzahl der AJAX-Aufrufe. Version 2.0 stapelt diese Aufrufe; du kannst versuchen, die Anzahl der Updates pro Aufruf durch die Verwendung eines Filters in der functions.php oder eines eigenen Plugins zu reduzieren.

add_filter( 'simple_page_ordering_limit', function($number) { return 5; } );

‚5‘ ist hier die Anzahl der Elemente, die pro Aufruf verarbeitet werden (Standard ist ’50‘). Bitte beachte, dass dieses Beispiel PHP 5.3+ Callback-Funktionen verwendet. Falls du also noch bei PHP 5.2 bist, dann musst du ein herkömmliches Callback verwenden.

Was ist mit der Dropdown-Box passiert, mit der ich die Anzahl der Elemente auf jeder Seite im Admin-Bereich ändern kann?

Diese Funktion ist bereits in WordPress enthalten, nur ein wenig versteckt. Öffne den Tab „Ansicht anpassen“ rechts oben auf der Übersicht der Seiten oder des Post Types. Dort kannst Du im Feld „Einträge pro Seite“ die Anzahl verändert.

Rezensionen

20. September 2021
Have a site with 100+ pages, needed a way to visually set the menu_order attribute without having to setting them individually. I also didn't want to rely on another plugin's system to maintain the order. This was exactly what I needed. Thank you
19. April 2021
We like to organize our pages for our Clients using Happy Files. Within each "folder", we organize our pages either in menu order, workflow order or order of importance. This makes finding and managing pages super easy for our Clients. We couldn't do it without this plugin. THANK YOU.
25. Februar 2021
No hassle, just install and start drag and drop pages in any order. Tested in combination with https://wordpress.org/plugins/sitemap/ and works as expected. Thanks a lot for great job.
29. Mai 2020
Just tried this plugin after having struggled with the hierarchical sorting for a long time. It does what was announced, but in a stupid way. Careful: this plugin changes the hierarchy-level and the sort# of your pages, without informing you first. This is like cheating. Of course I can cheat myself and assign wrong parameters to a page to force its position in the pages-list. But this is not what I had hoped for. Our need is this: We have three different versions (contentwise) of each page, so our triplets share the same position in the hierarchy of course. Many pages have sub-pages, but we want the triplets to always show up next to each other in the list, to help us with editing. We hate the way WordPress is crawling the tree, going first all the way down into one branch before going back up to higher levels. WordPress is giving us a hierarchy for pages, but gives higher priority to the alphabet than to the hierarchy-level when displaying the list. Yikes. We had hoped this plugin would help us, but it does not. We need to see a list of all our pages strictly sorted by hierarchy, like this example: (Any ideas please?) Superdad Superdad's twin sister Superdad's twin brother -Superson (son of Superdads twin sister but not important for our list view needs) -Superson's twin brother -Superson's other twin brother -Supersecondson -Supersecondson's twin sister -Supersecondson's other twin sister --Supergranddaughter (daughter of any of the above six pages but no need to see it) --Supergranddaughter's twin sister --Supergranddaughter's twin brother I give three stars because I looked all over before I installed and tried to learn how this plugin does the magic. There is no documentation about "the active ingredient". I was thinking it would internally rename the page-id or something (and hoped it would do it properly and not break our website). If you help me find a solution (since you guys know all about sorting) I will gladly give you five stars and make a mention here that yours is not our solution but how you helped me find our own solution. Thanks.
Alle 118 Rezensionen lesen

Mitwirkende & Entwickler

„Simple Page Ordering“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Simple Page Ordering“ wurde in 27 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Simple Page Ordering“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

2.3.4

  • Changed: Avoid failed reordering introduced in v2.3.3 when handling a large number of non-hierarchical items (props @dinhtungdu)
  • Changed: Bump WordPress version support to 5.4 (props @tmoorewp)
  • Fixed: Ensure titles of reordered items appear in a human-readable way (props @dinhtungdu)

2.3.3

2.3.2

  • Added: Allow cancellation of drag operation by pressing escape key
  • Fixed: Allow form input elements added to a row by plugins to be interacted with

2.3.1

  • Fixed: Prevent rows with hidden columns from jumping around while dragging

2.3.0

  • Added: Use WordPress core’s spinner class
  • Added: Grunt-based build process with Sass
  • Changed: Use WP_Query instead of get_posts() for better performance
  • Changed: Remove bundled translations in favor of WordPress.org language packs
  • Fixed: Avoid exceeding PHP’s max input variables, which could cause incorrectly assigned page order
  • Fixed: Malformed URL that would take you to posts instead of pages
  • Fixed: PHPDoc and coding standards to align with 10up’s Engineering Best Practices

2.2.4

  • Fixed: Redundant URL encoding when sorting in admin page list

2.2.3

  • Fixed: Ordering in WordPress 4.0 following core changes to ORDER BY in WP_Query

2.2.2

  • Added: German localization (props @glueckpress)
  • Fixed: Column widths no longer change when dragging a row (partial props @griffinjt)
  • Security: Closed obscure XSS vulnerability related to Sort by Order link (props @simon-waters)

2.2.1

  • Added: Brazilian translation (props @felds)
  • Fixed: Bring back translations / text domain (yikes!)

2.2.0

  • Changed: Look and feel to better match WordPress 3.8 admin redesign
  • Changed: Improved awareness of and compatibility with Quick Edit (inline editor)
  • Fixed: Prevent collisions with themes and plugins bundling Simple Page Ordering

2.1.2

  • Fixed: Hierarchical custom post types without page-attributes was still broken – doh!
  • Fixed: Extreme edge case where post columns did not include the post title now supported

2.1.1

  • Fixed: custom post types with page-attributes or hierarchical properties, but not both, breaking ordering

2.1.0

  • Added: Awareness of custom user capabilities for post types, in addition to a filter (simple_page_ordering_edit_rights) for overriding reordering rights (previously used edit_others_pages globally)
  • Added: Awareness of custom post statuses (so they are not skipped during backend ordering operation)
  • Changed: UI refinements: Better „spinner“ positioning (and HiDPI), translucent row when moving, improved appearance of „drop“ placeholder, wait till row dragged by at least 5px to start sorting
  • Changed: Major JavaScript refactoring and simplification (combined with new stylesheet) for better performance

2.0.0

  • Added: Drag pages into any part of the page hierarchy! No longer limited to same branch of tree!
  • Added: Big performance improvements under the hood: leaner queries, batched requests, less processing
  • Added: New filters and hooks to extend / override default functionality
  • Changed: Scales much more reliably in situations with very high page counts due to batching of requests
  • Changed: Order of the first page is now set to „1“ instead of „0“, so pages added after ordering are added at the top (instead of second)
  • Changed: Removed „number of pages“ drop down, which is repetitive of a field accessible under Screen Options
  • Changed: Improved compatibility with newer versions of WordPress

1.0.0

  • Added: Support for ordering non-hierarchical post types that have „page-attributes“ support
  • Added: New filter link for „Sort by Order“ to restore (hierarchical) or set (non-hierarchical, page attributes support) post list sort to menu order
  • Changed: Users are now forced to wait for current sort operation to finish before they can sort another item
  • Changed: Smarter about „not sortable“ view states
  • Changed: Localization ready! Rough Spanish translation included.
  • Changed: Assorted other performance and code improvements
  • Fixed: Unexpected page ordering results when pages have not been explictly ordered yet (sorts by menu_order, then title, not just menu_order)
  • Fixed: „Per page“ drop down filter selection not saving between page loads (was broken in 3.1)
  • Fixed: Items are always ordered with positive integers (potential negative sort orders had some performance benefits in last version, but sometimes caused issues)

0.9.6

  • Fixed: for broken inline editing (quick edit) fields in Firefox

0.9.5

  • Changed: Smarter awareness of „sorted“ modes in WordPress 3.1 (can only use when sorted by menu order)
  • Changed: Smarter awareness of „quick edit“ mode (can’t drag)
  • Changed: Generally simplified / better organized code

0.9.0

  • Added: Further directions in the plug-in description (some users were confused about how to use it)
  • Added: Basic compatibility with 3.1 RC (prevent clashes with post list sorting)
  • Changed: „Move“ cursor only set if JavaScript enabled
  • Fixed: Page count display always showing „0“ on non-hierarchical post types (Showing 1-X of X)
  • Fixed: Hidden menu order not updating after sort (causing Quick Edit to reset order when used right after sorting)

0.8.4

  • Changed: Loosened constraints on drag and drop to ease dropping into top and bottom position
  • Changed: Improved some terminology (with custom post types in mind)
  • Fixed: Row background staying „white“ after dropping into a new position
  • Fixed: Double border on the bottom of the row while dragging

0.8.2

  • Changed: Simplified code – consolidated hooks
  • Changed: Updated version requirements