Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rtripault committed Apr 23, 2013
1 parent dceb9c5 commit 8e078a4
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PluginSorter
# Plugin Sorter

PluginSorter is a Custom Manager Page allowing you to define the execution order of your plugins, per event.

Expand All @@ -7,6 +7,27 @@ PluginSorter is a Custom Manager Page allowing you to define the execution order
* PHP >= 5.3
* MODX Revolution 2.2+

## Installation & notes

Install from the Package Manager.

During setup, you will be offered to :

### Automatically sort existing events

This is a required action to make Plugin Sorter work.You can skip it during the setup and perform this action from the CMP later on.
What it does is assign & increments a `priority` value to each `modPluginEvent` object.

In the CMP, you will find a button which allows you to perform this action at will (most likely after each plugin creation/creation since MODX creates all plugins with a priority of `0`, messing up the whole priority role).
If you click the button when "All events" if set in the near combo box, the sorting will be done for all system events. If you filter to a particular system event, the sorting will only be done for that event.

### Automatically refresh cache

When manipulating the modPlugin objects (and related), MODX needs to refresh its cache to "activate" the changes.
Activate this option to do it automatically after each action that requires it.

If you know what you are doing, you can safely skip it, and manully clear the cache when you are satisfied with your configuration.

## License

PluginSorter is lisenced under the MIT lisence.
Expand Down

0 comments on commit 8e078a4

Please sign in to comment.