国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal 7.X/6.X模块介绍:Rules模块是什么

[复制链接]
发表于 4-8-2012 15:18 | 显示全部楼层 |阅读模式

总结下Rules模块的资料,记录可能的使用情况。

模块地址:http://drupal.org/rules

一份原作者的关于Rules的介绍 https://more.zites.net/morefiles/rules_praes.pdf

另一份ppt,应该是上一个ppt的更新版本http://www.drupalcamp.at/sites/drupalcamp.at/files/slides/praes2.pdf

模块能做什么?

  • 根据发生的事件(ECA-rules, Event condition action)定义条件执行动作(actions)
  • 替换内核的trigger模块,并提供更多的功能(features)
  • 作为drupal 5 的workflow-ng模块的继任者

触发规则举例:

当用户在您的drupal站点上冲浪时,将会产生许多的事件(events),当事件发生时,对相关的rules进行判断。

  • “保存新内容后”向用户显示一条信息
  • 当“用户登录”并且“用户没有admin角色”,“将他重定向至'仪表盘(dashboard)'"
  •  
---------------------------------------------------------------------------------------------

Rules

Rules

The rules module allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules). It's a replacement with more features for the trigger module in core and the successor of the Drupal 5 workflow-ng module.

Example use cases

  • Build flexible content publishing workflows changes
  • Send customized mails to notify your users about important
  • Create custom redirections, system messages, breadcrumbs, ...

And many more...

Modules may use the rules module's API to provide new events, conditions, actions, rule sets as well as default rules, which can be customized by users. Check out the developer docs.

Features

  • Obviously, you may use reaction rules to react upon any event with custom conditions and actions.
  • Allows functionality to be re-used via components (Drupal 6: Rule sets only).
  • Flexible scheduling system that allows scheduling any component / action.
  • Users can share their customizations by using the built-in import/export feature. For that the module also integrates with Features.
  • Modular input evaluation system - for example you can install the Token module and use it in every action.
  • The module has been developed with site performance in mind, so it makes use of caching routines to speed up rule evaluation.
  • Rules 2.x (Drupal 7 only) features improved APIs, a new admin UI, support for all entity types, parameter configuration via simple data selection (i.e. just pass node:author as argument) and much more. See this blog post for more details.

Requirements

Drupal 6:

  • To get token replacements in your actions, install the latest release(6.x-1.12 or later) of the Token module

Drupal 7:

Further resources

To get started have a look at the documentation. Before asking questions read the FAQ.

Sponsors

Maintainer

The maintainer provides paid development and consulting services. Help improving the module and get in contact!

Project Information

Downloads

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-13-2025 10:11 , Processed in 4.916639 second(s), 50 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表