rules

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

Asignar roles y permisos cuando creo un tipo de contenido

Como estan Soy Alan un miembro nuevo ,primero quiero saludar a todos los miembros de drupal peru y agradecer de antemano por su ayuda.

Actualmente estoy agregando algunas funcionalidades a un web de drupal ,ya casi hecha. Es una web que registra varios tipos de informacion pero principalmente perfiles de escuelas(informacion).

tenemos los sgtes roles

admin,usuario autentificado,MSDSC,etc

los usuarios autentificados ,tan solo pueden crear perfiles de escuela,y editar solamente su propia escuela.

Read more
ohthehugemanatee's picture

Different kinds of loops with Rules

One of the most useful parts of Rules is the "list loop" functionality. But I'm having a hard time figuring out how to do other kinds of common loops, like while() and for() loops.

My use case is simple. People can buy e-cards at the (Commerce-powered) web-store. When you buy an e-card, Rules handles sending the actual card. When you buy 3 of an e-card, it should send out 3 emails. But quantity is just a field on the line-item. So I'd like something like this:

<?pseudo-code

$quantity=[commerce-line-item:quantity];

do while ($quantity > 1) {

Read more
eric__'s picture

Architectural Use Case: Rules Interaction Across Sites

I have a question about rules operating across entirely separate Drupal 7 sites.

I am designing a client's application as N (N < 6) separate Drupal 7 sites for perforamnce, scalability, and security reasons. Traditional Muliti-site is not an option as they need the option to place different sites on entirely different servers. (see footnote) The sites are linked by 1) pushing content via the Deploy module (i.e. a backend 'publishing' workflow), 2) Single Sign On (with e.g. the Bakery module), and 3) shared business logic.

Read more
RogerJ's picture

Lunchmeny för hel vecka

Hej.
Jag har ett litet problem med lunchmenyer. Flera restauranger vill visa sina dagens rätter på en gemensam site.

Ett sätt jag testat är en innehållstyp med restaurangnamn, datum och meny. En vy väljer då noder med dagens datum och grupperar på restaurangnamn.

Nackdelen är att det blir många noder eftersom varje restaurang behöver en för varje veckodag och att det blir bökigt att redigera varje dag för sig.

En bättre lösning vore om restauranger kunde redigera hela veckans menyer i sin egen node och att man sedan ändå kunde visa bara meny med dagens datum.

Read more
göran's picture

Kan Rules läsa/skriva cookie?

Vid användande av ett frågeformulär, som oinloggade kan fylla i och skicka (går iväg som ett mail), vill jag kunna kontrollera och skicka en "kaka" i en viss del av ifyllnadsfasen, samt även kunna avläsa kakans kontrollvärde - som ett villkor på att mailet skickas (och noden sparas) - bl a.

Jag använder Rules och undrar därför om det finns någon "Kaka"-modul till rules?

I annat fall undrar jag om det finns en färdig modul som skriver/läser kakor och som kan integreras med Rules?

Jag använder DP 7.8

Read more
unwiredbrain's picture

Loop through users and/or roles

It is possible to loop through each registered user? What about user roles?

Here's a real use case.

I want to run a club; be it a book club or a night club, doesn't matter. Being a club, it must have members i.e. users with a particular user role applied ("member"). Each user membership lasts for a certain period of time ("membership period"), let it be one hour, 6 months or 20 years, doesn't matter.

[member] users have a field named "expiration" which contains the user creation timestamp with the [membership period] applied.

Read more
ibozo's picture

How to publish a revision with a rule but without the "publish revision" permission is checked ?

Hi,

I'm trying to explain my problem.

I configured a workflow with several states, users and activate the revisioning module.
I don't used triggers, only the rules module

Ok
In my case, a simple user can save some contents and an email is sended to another user to validate them.
But, for some minor updates content, I want this user can publish directly theses update on the site (bypassing the workflow)

For that, I added a checkbox (publish directly) in my content type (a CCK field -> field_pub_directe) and in a rule to check and publish the content.

Read more
dbnotes's picture

Criar Menu's e Block's automaticamente...

Boa noite

Sou um user relativamente novo em Drupal...

Começei à pouco tempo a fazer um site na versão 7, que vai conter bastante informação, variada e interligada. Para facilitar o trabalho de manutenção futuro, decidi criar uma série de Rules para gerarem Content Types automaticos, com os respectivos fields (titulos, imagens, tags etc).

O que pretendo saber neste momento é se existe alguma forma de criar Menus e Blocks automaticos com as Rules?

E já agora há alguma forma de relacionar as Rules com as Views?

Cumprimentos
Diogo

Read more
ka_'s picture

Rounding converted currency values

I have just created a rule that converts a value from one currency to another for Drupal Commerce
The rule is triggered by "Calculating the sell price of a product"
with the condition "Data compare" on [commerce-line-item:commerce-unit-price:currency-code] = "
and actions: "Convert the unit price to a different currency" and "Multiply the unit price by some amount".

So far so good, however I intend to ensure the value is always rounded upwards to the next value without decimals.

Read more
mkelly's picture

D7: Page redirect after node creation doesn't work

I'm building an event calendar that accepts submissions from anonymous users - but before the submitted events are published, they have to be approved by a moderator.

I have a event content type, with publish set to default. Anonymous users have the right to create events, but can only view published content. The problem is that after an event is submitted, users get "You are not authorized to access this page.", which makes sense.

So, I've installed Rules (7.x-2.0-rc1) and created the following rule, which checks to see if the user has submitted content and has the anonymous role:

Read more
Subscribe with RSS Syndicate content