NodeOne

Twitter: 
nodeone_dk

Publisher tutorials

total favorited
3
total views
0
by NodeOne
2 years 41 weeks ago | 09:50

This screencast shows how to use fields when scheduling Rules components. In the example we are also using the Flag module, to allow people to sign up for reminder e-mails 24 hours before an event starts.

The screencast covers:
-Using flags to load user lists in Rules
-Scheduling a rules component from a triggered rule
-Some words about rescheduling the evaluation if the event date should change
-Using conditions to make fields available in Rules configuration
-Using a date field to set evaluation time
-Adding an offset to the evaluation (-1 day)

total favorited
3
total views
0
by NodeOne
2 years 41 weeks ago | 12:55

This screencast shows how to start using Rules Scheduler. It does this by mimicking the Comment Closer module – closing the comments on articles two weeks after they are created.

The screencast covers covers:
-Rules Scheduler needs components – you can only schedule prepared components
-Components can be scheduled as actions, for example from reaction rules
-The evaluation time for scheduled tasks is set with strtotime(), which means that you can use highly flexible expressions
-You can also use data selection, combined with offsets if you want to

total favorited
4
total views
0
by NodeOne
2 years 42 weeks ago | 47:18

This is the Relation presentation from DrupalCity, DrupalCamp Berlin, summarizing the background of, anatomy of, and pretty much the usage of Relation module.

Slide presentations
-What problem space Relation wants to solve.
-How reference fields works today, and their limitations
-How these limitations have been treated previously
-Some nice basic properties of Relation, solving these problems
-The anatomy of a relation entity
-Some limitations and drawbacks of Relation
-Some future plans for Relation

Live demonstration
-Creating a (symmetric) relation type

total favorited
2
total views
0
by NodeOne
2 years 43 weeks ago | 08:59

This screencast shows how to go about debugging Rules configuration.

It covers:
-Enabling the debug information in Rules, showing rules evaluation.
-How to drill down into Rules’ debug messages.
-That most (or all) times, it is your configuration and not the Rules engine -that has the bug.
-That the most common bug is condition that evaluates in an unexpected way.
-How to see how long time rules execution takes – and why/when this may be important.
-How to use the debugging action in Rules, to inspect the data in Rules.

total favorited
2
total views
0
by NodeOne
2 years 43 weeks ago | 13:35

This screencast shows how to work with export and import of Rules configuration, in particular using the Features module.

It covers:
-Why you should use the Features and Strongarm modules.
-How to export Rules configuration with Features.
-How to import Feature-exported Rules configuration to a site.
-What reverting rules configuration means, and how to do it from Rules or Features.
-How to (eventually) export Rules configuration manually, and some words about the high readability in the Rules export code.

total favorited
2
total views
0
by NodeOne
2 years 43 weeks ago | 17:51

This screencast presents a way to automatically create the article promotions used in the previous screencast.

Topics covered are:
-Using the after new content has been created event. (Which does provide content NID!)
-Working with rule set components.
-Creating new entities with Rules.
-Setting field values in new entities – even complex fields like images.
-Force-saving entities, for example to get node IDs.

total favorited
2
total views
5
by NodeOne
2 years 43 weeks ago | 19:14

This screencast presents a way to help manage article promotions, separate content types used for promoting articles, providing more flexibility than standard teasers. The screencast shows how to have promotion nodes being published, unpublished and deleted in sync with the articles they belong to.

Topics covered are:
-Reacting on the node deletion event.
-Using fetch entity by property to load a list of all relevant promotion nodes.
-How to have the loaded list unlimited in length.
-Using the delete entity action.
-How to call rule components from a reaction rule.

total favorited
2
total views
0
by NodeOne
2 years 43 weeks ago | 11:36

This screencast shows how to set up Rules to mimick parts of the Login Destination module.

It covers:
-How to redirect administrators to the content admin page on login
-How to redirect non-adminsitrators to the front page on login
-That you need the “force redirect” option when redirecting on login (yes, really!)
-Some words about utilizing user permissions instead of user roles for conditions

total favorited
2
total views
0
by NodeOne
2 years 44 weeks ago | 13:37

This screencast shows how to set up Rules to allow node authors to – optionally – receive e-mail notifications when comments are posted to his or her content.

It covers:
-Adding a checkbox to user accounts, turning on or off comment notification
-Sending e-mails to a node author when new comments are posted
-Not sending e-mails to the author if he/she was the one writing the comment

total favorited
3
total views
0
by NodeOne
2 years 44 weeks ago | 09:47

Why creating Rules components? Here is why!

-You can reuse and simplify configuration
-You can export each component individually
-You can use rules components to perform conditions from within actions
-You can execute components manually for easier debugging (or just for the sake of executing their actions)

An important aspect of components is that they have variables – parameters that must be sent to the component when executing it.