Rules Monkey: Update #2

Events happening in the community are now at Drupal community events on www.drupal.org.
klausi's picture

This is the second update of the Rules Monkey Summer of Code project. I'm sorry for the relatively long pause between this post and the previous update (university kept my quite busy in June, but now I'm full-time available).

The progress that has been made so far:

  • Work on the Rules Scheduler issue (http://drupal.org/node/455560)
  • Successfully explored Views, DB-Schema and Rules hooks
  • Scheduled tasks can now be viewed, a Rules action is available to cancel specific scheduled tasks
  • Produced patches to reflect the current development status (see the issue link above)
  • Committed a working clone of Rules to CVS including the developed changes (see the rulesmonkey project page)

Next steps:

  • Finish the Rules scheduler issue in the next days
  • Meeting with mentor (fago) tomorrow to plan next development tasks

Comments

alicemello's picture

Hi,

I created a condition for when a given content type is created, a power user should get an e-mail to approve the content (publish it).
I need to display the content link (node address) at the message to be delivered by "Send a mail to an arbitrary mail address".
How can I do that? I see no examples of the sort and embedding a <? echo $node ?> at the mail msg body does not work.
Thanks
Alice C. Mello

Alice C. Mello

Do you have the tokens module installed?

AlexisWilke's picture

With the tokens module, you should have something like [node-nid] available. From that you can build a valid URL:

http://www.example.com/node/[node-nid]

The available tokens are shown in a field. Open it to see the exact syntax and all the available tokens.

Latest version of tokens

aantonop's picture

You need the latest version of tokens for the rules integration to work, I believe.

If you do, then you should have this token:

[node:node-url] which should give you something useful. Might need to prefix it with this token: [node:site-url]

Also, if sending in an email, it will have to be an HTML email so you will need integration with mimemail (to send HTML email instead of plaintext). There's a patch for mimemail integration (search mimemail rules) that works quite well.

I've got all of this working together without problems and I'm sending emails with links to node pages, so holler if you are not getting it working and need help

tokens and rules

alicemello's picture

thank you aatonop.
Could you give me an example how do I add [node:site-url] into the mail's message body?
I will try to download and install mimemail now.
Alice

Alice C. Mello

mime mail is not stable for Drupal 6.12

alicemello's picture

I guess I can't download it since it is under development, right?
Is there any other way to insert [node:site-url] into the e-mail msg body?
Thanks

Alice C. Mello

mime mail?!

AlexisWilke's picture

Alice,

Try without it. That's not what gives you the token. You need to install the latest Token module for that.

aantonop,

What difference does mimemail make to you? Other than sending proper HTML?!

I actually prefer to send plain text emails and my URLs work just fine in there.

Thank you.
Alexis

mimemail only necessary for full HTML email

aantonop's picture

A single link is usually rendered in most clients even in plain-text email. Alexis is correct. For that you do not need mimemail, you just need token module and the tokens identified previously.

In case you do want to send full HTML, you can use mimemail. It is development, but is working fine for me at least, so it might be worth trying.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: