Rules Action: Set a data value - for a date field
Hi there,
I am attempting to create a rule that automatically creates a group event node when a group post node is created by the users. Once things are said and done, I'd like to use that group event node in a calendar view.
My Event is................. After saving new content
My Condition is............. Content is of type - Parameter: Content: [node], Content types: Post
My Actions are..............
-
Fetch entity by id
Parameter: Entity type: Node, Identifier: [node:nid], Revision identifier: [node:vid]
Provides variables: Learning Link (node) -
Fetch entity by id
Rules Action: Set a data value - for a date field
Hi there,
I am attempting to create a rule that automatically creates a group event node when a group post node is created by the users. Once things are said and done, I'd like to use that group event node in a calendar view.
My Event is................. After saving new content
My Condition is............. Content is of type - Parameter: Content: [node], Content types: Post
My Actions are..............
-
Fetch entity by id
Parameter: Entity type: Node, Identifier: [node:nid], Revision identifier: [node:vid]
Provides variables: Learning Link (node) -
Fetch entity by id
How 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
}
}
?>How to tie a CCK (radio select) field and a MENU together programatically?
Hello,
Looking into writing a custom trigger->action module.
But first I wanted to check if this has already been done.
Basically I have Panels which read the arg0 variable in the URL to call up Nodes that have a drop-down CCK field that matches the arg0 passed to it.
What I am missing, is a way for a MENU item to be automatically created at the same time [and with the same identifier] as a value in a radio-select field for Page_Area.
Read moreWorkflow problem saving node
Hey, I'm testing the workflow module on my site, and I'm having a problem with it that I hope one of you can help me with.
I'm using Drupal 5.6 , Workflow 5.x-2.3, Workflow access 5.x-2.3, Actions 5.x-2.6, Trigger Unlock 6.x-1.0 (which can supposedly work with Drupal 5).
I set up five workflow states for one of my content types, called "Press Releases". The assigned actions for each transition is to change the workflow state, and to publish or unpublish the node.
Read more