Search in group Search
Can I clone a node, but with different node type with rules?
I would like to create the following rule (but without success so far):
I have 2 content types: idea & discussion.
In idea content type I have added a cck field named "status" (a select list) that has: registered, approved.
Here is the rule I want to have:
If node type is idea AND field "status" is approved
Then clone the node but with as type discussion.
Any ideas how to do that?
Thanks a lot,
S.
Read moreSend mail to "parent node" of a comment
Hi,
I have a node type called "big", this node type can have comments of type "small" (using the node comment module).
"big" have a cck field called "emailfield", users who create "big" are not registred, they enter there emails on "emailfield" when they create the node.
What I whould like to do is to have rules send a mails to "emailfield" of "big" when a comment "small" is created for it.
Can you help me doing that ?
Regards,
Read moreHow to programmatically test if a rule has ran.
I have set up a rule that triggers when a new content of a certain type is created. How is it possible to programmatically test if this rule has ran?
I have the following code
<?php
function nupostmark_test() {
$node = node_load($node);
$ntypes = node_get_types('types', $node);
$nodesaverule = rule_function_to_call_here;
if($nodesaverule !== NULL && $ntypes == 'plistings'){
drupal_set_message('you can set the variable now');
//set some variable to make available to template.php in phptemplate_preprocess_block
}
}
?>change user permissions or content owner dinamically
Hi everybody,
im new on the group, im searching for orientation on a problem.
Just lest imagine that we have a content type written by a user (user1, role1), for example describing a place. Then, a different user (user2,role2) can upload images related to this place, let´s say for example using cck and comments to relate both contents in an easy way (maybe it could be done better, im studing this).
Then, what i need is that the user1 can modify the upload images of user2, but no any content of user2, just the content added to the content created by himself (user1).
Read moreDelete a User with Rules
Hi folk,
I working with Drupal since a year but I am quiet new with Rules.
I want to delete a user if they do not confirm their registration after a week. It is almost done with all the process but I still need a action to delete the user. This action seems not to be in the core. Is there any reason why ? I guest I need to create a new custom action ?
Thanks for your advice,
Cheers,
Read moreWeekly email containing All nodes of content type
Hello all,
would someone kindly suggest to me how to do the following:
send a weekly email that contains all content of a type created during the previous week.
(in reality, it seems like it would be useful to just email a view, but i dont know if thats possible.)
Read moreautomatically iterate through the node array and add info to email content
I set up a rule that emails administrator when specific types of nodes are saved.
Is it possible to automatically iterate through the node array and dump field title and field values into the body of the email message.
Read moreToken Replacement Patterns
I've created a rule that displays a message. I've copied the token replacement pattern for a created content node id which is:
[auto_generated_cq:nid]
when i enter it in the message box, it doesn't seem to generate any number.
i've used it this way: http://mysite.com/node/[auto_generated_cq:nid]/edit
and also this way: [auto_generated_cq:nid] (by itself)
and neither did anything.
Whats the matter with my token? :)
Read moreAccessing fields from "Content is going to be viewed" node
I am trying to add the current users ID as a suffix to a cck link field as the node is loaded. Am I pipe dreaming?
I've created a text field on the content type with the "base" url. I have a cck link field that is blank that I want to populate with the base url + the uid of the current user.
I created a rule that when "Content is going to be viewed" & is this content type THEN DO
"Load content by ID" with the token node ID of the "Content is going to be viewed" node THEN
"Populate node_to_be_viewed's field" with some custom php:
New Rules module - better messaging (cover drupal_set_messages() options using Rules)
I need the ability to purge all existing messages (drupal_set_message), and to send messages in different type other than the original action provided by Rules.
Attached to the proper issue (I hope) is the new module - "Better Rules Message".
Do you think this module should be by its own, or should it be merged into the Rules module ?
Comments are welcome,
Regards,
Shushu

