| home | resources |
search |
news | join | members: 6958 |
Drupal 6 offers built-in actions that can be performed whenever something happens on your site. Typically, you want to use this to get an alert when someone publishes content on the site, or a new user signs up. Triggers are Drupal events such as saving or updating a post, a user logging in or someone viewing a piece of content. Think of it like a trigger for an argument – when the trigger happens (ie. A disagreement), an Action happens (the argument). This allows you to heavily customize Drupal and paves the way to amazing new implementations of the software. Actions are something that happens after the trigger. For example, you could redirect the user to a page, send an email notice to administrators or display a special message. This can allow you to integrate Drupal into other systems. How do I enable triggers? (Slide) To begin using Triggers and Actions, you first must enable the Triggers Module included in Drupal 6.0. Follow the following instructions: How do I enable triggers? (Demo)
What can I do with Actions and Triggers? Actions and Triggers are pretty awesome really. They give you the ability to add some extra dynamic features to your Drupal installation without any coding or real technical knowledge. It’s like writing a new Module for Drupal, but easier. The best thing is that there are so many things you can do! Here are some real world example of things you could do using Actions and Triggers: Example 1 - Auto Promote to Front Page (Slide) Ever written a piece of content and forgotten to Promote it to Front Page? It sounds simple, but it gets annoying if you have to go and promote it manually. Using the “After saving a new post” trigger and the “Promote Post to Front Page” action, you can make this happen automagically! Example 1 - Auto Promote to Front Page (Demo)
Example 2 - Alert Writer to a New Comment (Slide) Don’t you just love that warm, fuzzy feeling when you get a comment on something you’ve written? It’s really nice to be appreciated for your hard work. You can get an alert when someone comments on your story using the “After saving a new comment” trigger with the “Send an email” action. In this set, you will be using variables. Example 2 - Alert Writer to a New Comment (Demo)
Example 3 - Personalized Member Welcome (Slide) Is your site a bit of a niche site with a dedicated fan-base or do you want to really make your customers feel at home? You can get notified when a new member joins so that you can send a customized notice to them personally! Use the “Send email” action with the “After a user account has been created” trigger. Example 3 - Personalized Member Welcome (Demo)
Thank you for watching the Drupal screencast on Actions and Triggers. I hope that this has been useful, and has helped you to understand the new options and use them effectively to improve your site. Visit the handbook page on Actions and Triggers for a text only version of the screencast. Thoughtbox - So what did you think? |
PHP London Hotels
Web Developers Laptop Reviews
ASP.NET Just Dial International Calls
Silverlight Excel Training Courses
Windows excel courses in london
Windows Data Recovery
Adobe Flex
|
NewsletterGet updates on Hiveminds services, articles and downloads by signing up for the newsletter. |
Editor's choiceSome of the better articles, stories and tutorials found at Hiveminds. |
Find moreFind more of Hiveminds articles, stories, tutorials and user comments by searching. |
Picked linksHand picked websites and articles from around the web that provide quality reading. |