Rules Let's make Drupal more Dynamic & Interactive 4 Wheels of - - PowerPoint PPT Presentation

rules
SMART_READER_LITE
LIVE PREVIEW

Rules Let's make Drupal more Dynamic & Interactive 4 Wheels of - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

Rules

Let's make Drupal more Dynamic & Interactive

slide-2
SLIDE 2

01/13/11 2

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.

slide-3
SLIDE 3

01/13/11 3

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.

slide-4
SLIDE 4

01/13/11 4

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.

Decision Making in a Drupal site...

slide-5
SLIDE 5

01/13/11 5

I'm not sure, whether other CMSs can support those kind of decision makings and actions easily or not.

Decision Making in a Drupal site...

Yes, Drupal Rules module (+ other modules) can do more than those examples.

slide-6
SLIDE 6

01/13/11 6

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

Drupal Built-in Trigger & Action

Rules module can do more than triggers....

slide-7
SLIDE 7

01/13/11 7

  • 1. Allows site administrators to define conditionally

executed actions based on occurring events (known as reactive or ECA rules)

Rules Module

An excerpt from drupal.org...

  • 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.
slide-8
SLIDE 8

01/13/11 8

  • 1. Send customized mails to notify your users about

important changes

Some Features at a Glance

An excerpt from drupal.org...

  • 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.
slide-9
SLIDE 9

01/13/11 9

  • 6. Users can share their customizations by using the

built-in import/export feature.

Some Features at a Glance

An excerpt from drupal.org...

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

slide-10
SLIDE 10

01/13/11 10

  • 1. Rules module

Creating a Rule

Requirements

  • 2. Token module
  • 3. Idea..... (probably requests from the clients...)
slide-11
SLIDE 11

01/13/11 11

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

slide-12
SLIDE 12

01/13/11 12

Thank You

Maung System Engineer/Developer mmshare.org myanmarlanguage.org

Download all the Presentation and Sample Rules screen shots package at http://mmshare.org/d/d.php?f=SGDrupalNovPresentation.zip