Search in group Search
Fetch data from current term
Hi,
I just installed the latest version of Rules, and I have been trying the stuff that I can do with It.
But for a couple of hours I haven't been able to fix/find the right way to do what I want.
What I want to do is to fetch the current value of a term field, and then calculate it with other value.
This is the example:
I have a node type called products. The node have a price field (without a currency). It is just a integer field.
Then I created a field for my taxonomy (currency taxonomy) with the values of the exchange rate:
ex: EUR: 0,45
US : 0,24
How can I use a set the value of a taxonomy term reference field to multiple values?
I have a taxonomy term reference field that allows for up to two values. How can I set both values in a rule?
I set up a workflow in rules that works for setting a single value. I tested this several times and encountered no problems. However, when I changed the "Number of values" for the field from "1" to "2" and then edited the action to add two terms instead of just one, I got the following error message:
Read moreAdd user/roles to rules condtions
I am trying to apply a rule for all site users, but the drop-down list in the conditions section only includes those such as author and active users. Is there anyway that I can add other users such as authenticated so that I can apply a rule that impacts everyone other than the author of content?
Thanks!
Using Rules with UC Node Checkout - ALMOST works, need help
Ok, here's my situation:
I have a webform which I wanted to have trigger a node checkout (UC Node Checkout) when the webform is submitted (I know about webform productize, and let's just say it doesn't fit my exact use case).
Now, I know (now) that I can't have webform do this exactly because a webform submission is not technically a node (learned that the hard way).
So my solution was to use RULES. I first made a second product type (a product class), called "Ordertrigger" so as to use that as the trigger for the node checkout.
So the sequence goes:
Read moreCannot use Integer variable in Date (Set a data value)
This website is for yearly renting.
(After the website finished, the field_date_end_rent will be hidden in the node submit form. The form will be automatically filled by Rules.)
(In the Rules example, I'm using Content is viewed for event. Its for testing purposes.)
The field_date_end_rent = field_date_start_rent + field_subscription_period year
Mobile4Social.com - create free Android application for your Drupal site, including push notification
Hello all,
Following the release of the new Google Cloud Messaging, we were able to release our first example for new approach for Drupal/mobile.
Currently all we offer is a combination of several Drupal modules (Google Cloud Messaging, Rules, Services and views) on the Drupal side, and a basic Android application on the other side.
Read moreThere is no method conditon for this instance of the class RulesAnd. in FacesExtendable->__call()
rules_and() doesn't work with sub conditions in hook_default_rules_configuration_alter() giving error:
FacesExtendableException: There is no method conditon for this instance of the class RulesAnd. in FacesExtendable->__call()
Works:
<?php
$configs['commerce_tax_type_eu_vat']->condition(rules_or()
->condition('component_rules_commerce_eu_vat_country_list', array('commerce_order:select' => 'commerce-line-item:order'))
->condition(rules_and()
Using Rules to publish/unpublish based on a Date field
Can anyone point me to a tutorial or "how-to" for publishing/unpublishing content with Rules using a Date field -- in Drupal 7? I've done it before in Drupal 6 -- but I'm stumped about how to do it in Drupal 7.
Here's the scenario: A content type has a Date field. When you create a node of this content type, the node is "unpublished." I'd like to set up a Rule to publish the content on the date contained in the Date field.
Read moreLeverage Modify Node Fields functionality to allow users to change referenced node CCK values
Scenario:
I have a site that was built specifically for a service company. They have content types for job and address. On any particular day, they will have a list of jobs and their associated addresses (one address per job) displayed in a view.
I have installed VBO and configured it to modify the node fields of the job in this daily job view. It also displays some information from the address. In particular, it shows the mapping coordinates for the address on each job.
Read moreValor calculado con rules de 2 eventos y tipos de contenido diferentes
Soy relativamente nuevo en drupal 7 tengo cerca de 7 meses, estoy haciendo un control de inventarios el cuál debe ser por el método de inventarios por costo promedio, mi idea es utilizar node hierarchy, views y rules para ello.
Explico:
1. Defino un tipo de contenido llamado "articulo" el cual contiene la descripción y características del mismo, e incluyo campos como existencia, costo unitario, costo promedio y saldo.

