UPDATE 20100301: Lodewijk Schutte (Low) has created an awesome EE 2.x compatible version of this module, adding some cool extra’s. More info can be found here and here.
—————
The REEOrder module allows you to easily re-order your entries.
The module uses EE’s ability to order Weblog Entries by a Custom Field, it does not add any queries or other additional processing to your templates.
Installation and usage:
Step 1:
Create a new Custom Field in your Field Group, this field will hold the sorting value. You aren’t actually going to use this field. The REEOrder Module will do all the heavy lifting. (The actual sorting.)
- The preferred “Field Type” would be “Text Input”
- Name it anything you like, and feel free to set any other options
Step 2:
Install the “REEOrder” Module
Step 3:
In the module’s Preferences page, select the Custom Field you just created.
Step 4:
Select a weblog and re-order your entries
Step 5:
Create or modify a template and change the “orderby” parameter in the weblog tag to the name of your new Custom Field
Example of the weblog tag:
{exp:weblog:entries weblog="default_site" orderby="your_new_custom_field" disable="categories|member_data|pagination|trackbacks"}
<h3>{title}</h3>
{body}
{/exp:weblog:entries}
If you change Sort Order to “Ascending” in the module’s Preferences, make sure you also add sort"asc” to your weblog tag.
Step 6: (optional)
If you like you can install the additional “REEOrder” Extension, this will remove the Custom Field from the Entry Form. (so your client won’t accidentally mess with it).
Let me know if you have any questions.
EDIT: updated to v1.0.1
EDIT 20090203: Thanks to Matt and Brandon you can now sort by drag-and-drop!
EDIT 20090301: updated to v.1.2
This version adds the following:
- Matt and Brandon’s drag-n-drop sorting (awesome!)
- the MSM fix mentioned by “agun” (on page 4)
- the ability to only show (and sort) certain statuses (as requested by Low)
- the ability to filter out weblogs that haven’t been assigned a custom order field (as requested by Hambo)
Version 1.2 requires the “jQuery for the Control Panel” extension to be installed and activated!
Download: REEOrder Module 1.2 for EE 1.6.x.
