public
Description: Elwin Zuiderveld's REEorder Module for ExpressionEngine
Homepage: http://expressionengine.com/forums/viewthread/43903/
Clone URL: git://github.com/timkelty/ez.reeorder.ee_addon.git
timkelty (author)
Tue Jun 09 21:40:31 -0700 2009
commit  3a88eb1bcc2fe944845413d8988ed8f052996aa0
tree    7477d221347639de9f33a8fec33579b1c53981ea
parent  c473159f90bd96cfa3ce474a3bdfbfa859f91418
name age message
file README.txt Mon Feb 02 10:46:41 -0800 2009 readme edits [brandonkelly]
directory system/ Tue Jun 09 21:40:31 -0700 2009 adding check for gypsy columns [timkelty]
directory themes/ Sun Feb 01 17:42:22 -0800 2009 jQuery entry sorting [brandonkelly]
README.txt
INSTALLATION INSTRUCTIONS:

- Always backup your database before installing a module!
Log into your ExpressionEngine Control Panel, visit the following page:
Admin > Utilities > Database Backup, and make that backup!

- Upload the system/modules/reeorder folder to system/modules on your server.

- Upload system/language/english/lang.reeorder.php to system/language/english on your server.

- Upload themes/cp_global_images/sort.png to themes/cp_global_images on your server.

- Go to the Modules tab. You will see an entry listed for "REEOrder". On the right side of the table, click the Install 
link corresponding to the REEOrder Module. This will install the necessary database tables and settings for the module.


- The REEOrder entry is now a clickable link, click it to start using the REEOrder module.

Optionally:
- Upload system/extensions/ext.reeorder.php to system/extensions on your server.


ABOUT THIS MODULE:

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).


CHANGE LOG

1.0.0:
- Initial release

1.0.1:
- Fixed a MySQL error

1.1.0:
- Brandon Kelly <me@brandon-kelly.com>: Added drag-n-drop sorting (sponsored by Matt Weinberg)
    - requires CP jQuery (http://www.ngenworks.com/software/ee/cp_jquery/), which comes bundled with EE 1.6.6+.