Hello,
I am somewhat new to Rules and am amazed by what it can do. I've got a situation where I believe Rules is the best tool, (I have also considered http://drupal.org/project/computed_field and http://drupal.org/project/views_calc). Any insight you have would be greatly appreciated.
On my D6 site, users of with the 'Author' role will be submitting content for 'Moderators' to approve. I need to design a system which, based on three criteria, adds weight to the requests. The three values will be added together and Views will then present an admin dashboard containing a to-do list sorted based on each task's priority.
Criteria 1): A priority drop-down (High, Medium, Low) is presented to the author on the node/add page. I have created three triggered rules (Priority: High, Medium, Low) If saved content's field 'field_priority' has value of 'high' then I submit to field_calculated:
return array(
0 => array('value' => 100),
);I have two more triggered rules for Medium & Low, obviously submitting lower values. These rules are working correctly, but is there a way roll all three rules into one?
Criteria 2): The second factor is the Organic Group the author is a member of. (Corporate vs. divisions vs. department-level groups.) Setup seems similar to the above rule. However, I'm struggling withhow to write the Rule so that it will recognize as yet uncreated groups.
Criteria 3): Page visibility (Front page vs. menu items vs. sub-pages.) I have no idea on this one...Can Rules detect PathAuto Replacement patterns?
- If front page: value is set at 100
- If menu item (/content): (100 * .1),
- If sub-page (/content/[title]): (100 * .1 * .1)???
Thanks!
-NonProfit

Comments
For #1 if you have a dropdown
For #1 if you have a dropdown - can't you just assign the values in the cck field? i.e. use the labels High/Med/Low but have the actual values be the weights you want assigned - then you just need 1 rule that copies the value to your calculated field.
For you groups - will their og page have a cck field for setting the priority? somehow you need a content-type that presents a value to the rule - then similar to above you just read that value and assign it.
Rules can use path aliases look under the Path-has aliases condition.
Thanks
Thanks letapjar!