Your SlideShare is downloading. ×
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Rules
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Rules

344

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
344
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • что такое Rules? что можно сделать при помощи Rules? 2 Демо, одно с VBO одно с простым лупом. Возможно еще одно с модулем FLAG Rules в связке с другими модулями (Views, Flag, Ctools, Views Bulk Operation) краткий обзор API.
  • Transcript

    • 1. Rules http://drupal.org/project/rules
    • 2. Data selection
    • 3. Loops
    • 4. Examples
    • 5. Mark as spam
        • Flag (Mark as spam)
        • Rules:
          • Unpublish spam comment
          • Block spammer
          • Notify moderator about bad user
        • Messages in spam log 
    • 6. Moderators' workflow
        • Fields:
          • Moderation status field
          • Unpublish date field
        • Fields permission 
        • Rules for publishing and notification.
        • VBO and Rules for bulk operations
        • Message module for logging changes
      •  
    • 7. Demo
    • 8. Useful modules:
    • 9. Rules Bonus Pack http://drupal.org/project/rb Aditional triggers, actions and conditions.
    • 10. Views Bulk Operations http://drupal.org/project/views_bulk_operations Run Your rules on the views-result.
    • 11. Flag http://drupal.org/project/flag Trigger rules on flag/unflag any item.
    • 12. Rules Link http://drupal.org/project/rules_link Create links which trigger rules.
    • 13. Page Manager http://drupal.org/project/ctools User rules conditions to check access for page.
    • 14. Content Access http://drupal.org/project/content_access   Give role-based access to nodes with rules.
    • 15. Relation http://drupal.org/project/relation Work with related entities and create relations.
    • 16. Difference in performance *Measurement was made on page load Rules Custom module Update user's name after account was updated. ~177,57 ms ~174,35 ms Update user's name after node was viewed. ~230,5 ms ~193,06 ms
    • 17. Difference in performance
    • 18. What does it mean?
        • ~40 ms additional page execution time
        • ~3 ms additional queries execution time
        • ~17 additional exuquted queries
        • ~3,5 mb additional RAM usage.
    • 19. Development
        • Provide your own ations and conditions using : 
          • hook_rules_action_info() 
          • hook_rules_condition_info() 
        • Define entity properties using hook_entity_property_info of the entity API
    • 20. Use Rules because: 
        • Rules is flexible
        • Rules is more clear for a customer
        • Rules intagrates with other modules
        • You can easily move needed functionality using Features
        • Clicking is faster that writing a code
    • 21. Useful Links
        • Code exampels:  http://drupal.org/project/rules_example
        • Documentation: http://drupal.org/node/878720
        • Screencasts: 
          • http://nodeone.se/node/984
          • http://london2011.drupal.org/conference/sessions/rules-way-life
          • http://www.youtube.com/watch?v=1itm3t0YMfw
        • Moderations' workflow feature:  https://github.com/yarroha/Workflow-feature
    • 22. Questions? Yaroslav Doroshuk email: yarroha@gmail.com skype: yarroha twitter:  https://twitter.com/#!/yarroha blog: http://yarroha.name/

    ×