This section details how to work with the built-in Trigger/Actions module in Drupal 6, as well as a variety of contributed modules such as Rules, in order to setup and use enhanced automated workflows in Drupal.
This guide will show you how to augment the default Drupal front page with the ability to sort and reorder the teasers manually in the order you prefer, rather than the default way of sorting by date. Since the default Drupal home page is actually hard-coded as is in Drupal, it will have to be replaced before preceding. Fortunately Views module makes this extremely simple: it comes with a premade "Frontpage" view, which exactly duplicates the default Drupal front page (except with Views, it is completely flexible and simple to customize).
Note: this technique can also be used to manually reorder the content of "any" View, including custom Views you create yourself, and on any page (not just the front page).
Modules required:
Trigger (comes with Drupal 6)
Views
Nodequeue
Optional (for enhanced Rules version):
Rules
Front (you can choose another name if you prefer). Set the Queue size to 0 (infinite), and check the Reverse in admin view option.Important: the default Trigger/Actions module that comes with Drupal 6 core is relatively basic and while it can specify and execute a a variety of Triggers and Actions, it is limited in how specific they can be and what actions they can perform. For more complex functionality, you will need the Rules module. Before proceeding, you should decide ahead of time which to use, based on the functionality you need.
In general, Trigger module cannot specify which Content types it will act on (it acts on "all nodes" of every type), however in this case the fact that the "Front" Nodequeue will only accept nodes from the type(s) you selected when you made it, will effectively filter it to only the Content type(s) you want included (the Action will try to add nodes of all Content types to the queue, but only those types you specified in the Nodequeue will be accepted). In other cases (when Nodequeue is not involved) you may not have this benefit to rely on, and will have to use Rules module. Also Rules module offers substantially more options and functionality if you need it.
If Trigger/Actions is sufficient then proceed with the next step. If not, then skip on to the Rules method.
Use this method if Trigger/Actions is powerful enough for your needs. Unless you have more advanced requirements, this method should be fine.
Add to nodequeues. Click the "Create" button.Add to the Front nodequeue (it's best to customize the Action name so you can easily identify the Action later on). Choose the Front nodequeue from the Queue option.Add to Front nodequeue option.Now create one more more sample nodes of the Content type(s) that are included in the Front Nodequeue. You can also try making a node of a different type to confirm that it does "not" get added to the queue. You can look at the content of the queue, and adjust the order of nodes in the queue by going to Administer > Content management > Nodequeue (admin/content/nodequeue) and clicking the "View" link next to the Front queue.
Next skip ahead past the Rules method step below, to learn how to set up the Frontpage view.
Coming soon.
Nodequeue to filter the list down. Check the Nodequeue: Queue option, and click "Add".Front queue. Check the Require this relationship option and the Limit to one or more queues option. In the Queues option that appears, choose the Front nodequeue. Click the "Update" button.Nodequeue to filter the list down. Check the Nodequeue: Position option, and click "Add". Ensure that the Front queue is selected for the Relationship, set Sort order to Descending, and click "Update".frontpage (which is the URL of the frontpage View). Click "Save configuration".Add to the Front nodequeue, and click the "Update" button.
You may also want to adjust the Items per page option to a higher number so you can process more results at a time. Save the View and the proceed to the URL admin/content/node2. The option to add selected nodes to the Front nodequeue is now available. Set the Promoted filter option to Yes and you will get a list of nodes that have their Promoted to front page option checked. Click the top left checkbox to select them all, and then add them all to the Front nodequeue.