Rules Let's make Drupal more Dynamic & Interactive
4 Wheels of Drupal 1. CCK – used to create different types of contents 2. Views – used to show various kind of data outputs 3. Panels – used to place multiple layouts easily 4. Rules – used to make Drupal dynamic & interactive They make Drupal different from other CMSs. 01/13/11 2
Decision Making in a Drupal site... Some of my client requests..... 1. Want to send different acknowledgement emails to different user Roles when they create certain kind of Content. 2. Want to get notification emails whenever a user upload a new document to the website using certain kind of Content. 01/13/11 3
Decision Making in a Drupal site... Some of my client requests..... 3. Want to notify to complete profile when a newly registered member log in for the first time . 4. Want to alert members with uncomplete profiles to update whenever they log in to the website . 5. Want to encourage the user to upload more, after they created a certain content to the system. 01/13/11 4
Decision Making in a Drupal site... I'm not sure, whether other CMSs can support those kind of decision makings and actions easily or not. Yes, Drupal Rules module (+ other modules) can do more than those examples. 01/13/11 5
Drupal Built-in Trigger & Action Drupal has built-in Triggers and Actions to do some interactive functionalities. Such as - Sending email to admin (or an email) when a new user registered - Auto promote a content type to front page when it is published - more on http://drupal.org/node/199254 Rules module can do more than triggers.... 01/13/11 6
Rules Module An excerpt from drupal.org... 1. Allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules) 2. It's a replacement with more features for the trigger module in core. 3. The successor of the workflow-ng module. 4. 32462 sites are using Rules module. 01/13/11 7
Some Features at a Glance An excerpt from drupal.org... 1. Send customized mails to notify your users about important changes 2. Build flexible content publishing workflows 3. Create custom redirections, system messages, breadcrumbs, .. 4. Other modules may use the rules module's API to provide new events, conditions, actions, rule sets as well as default rules 5. Flexible scheduling system. 01/13/11 8
Some Features at a Glance An excerpt from drupal.org... 6. Users can share their customizations by using the built-in import/export feature. 7. Modular input evaluation system - for example the Token module and use every action. 8. It is developed with site performance in mind, so it makes use of diverse caching routines to speed up rule evaluation. 9. Capable of importing workflow-ng rules as far as all involved modules were properly ported to rules. 01/13/11 9
Creating a Rule Requirements 1. Rules module 2. Token module 3. Idea..... (probably requests from the clients...) 01/13/11 10
Resources Rules module http://drupal.org/project/rules Documentation 1.x/D6 http://drupal.org/node/298486 Tutorials 1.x/D6 http://drupal.org/node/298482 Rules group http://groups.drupal.org/rules Modules integrated to Rules http://groups.drupal.org/rules/rules-modules Quick intro video Showing a message to a logged in user http://blip.tv/file/4281259 FAQ http://groups.drupal.org/rules/faq Google “Drupal Rules”+tutorial|video|how-to 01/13/11 11
Thank You Download all the Presentation and Sample Rules screen shots package at http://mmshare.org/d/d.php?f=SGDrupalNovPresentation.zip Maung System Engineer/Developer mmshare.org myanmarlanguage.org 01/13/11 12
Recommend
More recommend