The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
21 views

Accept agreement field

Is it possible to add "Accept terms" checkbox to node form? I can do it using hook_form_alter, but sometimes I need to create such checkbox only with GUI. The one solution is to create custom field ...
0
votes
1answer
19 views

How to compare with a rules condition vote:uid to 10 instances?

Principle: limit user's votes to 10. Modules used: Voting API, Rate (or maybe Plus1) Context: Users can vote on projects with 10 possible votes to distribut on all projects, by 1 to 10 votes on each ...
0
votes
2answers
40 views

Targeting non admin pages (front end) from a module

From my custom module I'd like to target essentially all front end pages on my site whether it be a node, front page, a views page or taxonomy page. I started out thinking it would be better to use ...
0
votes
0answers
14 views

add segmentation conditions to simplenews?

Hello Im trying to find how can I add segmentation to my newsletter campaigns, I use simplenews. This is my use case I ask the following information to anonimous that want to suscribe to my site: ...
0
votes
0answers
15 views

Custom rules condition gives error “Unknown data property label”

I am creating a custom condition for use with the Rules module; but I am not able to access the entity ID and entity type that would seem to be available to the EntityDrupalWrapper object. Perhaps ...
0
votes
3answers
60 views

How to add and condition in Query [closed]

I have to fetch nodes where it doesn't have both roles(6,7) in it,at the same time exactly. I don't want to show role 7 nodes, but it some times have role 6 attached to it also ,at that time i want ...
0
votes
0answers
23 views

Hiding a field based page using webform conditionals

I have created a markup field on my webfom and I wish to only show this field base on the page or url that it's on. Basically I do not want it to show on any page that is within the url string: ...
0
votes
0answers
35 views

Using Rules to Sum Value Field of a Node

Already know how to create a view with sums. That won't help because I can't call that value into a variable. This question is how to use views rules, or views VBO combined with rules to create a ...
1
vote
3answers
176 views

How to apply an image style based on a condition (a date for ex.)?

I'm looking for a way to apply a grayscale image style to a content type image field when certain conditions are met. A date is reached (date field) for example Can the rules modules do this ? ...
0
votes
0answers
39 views

Check Current Environment of Drupal Instance

Is there a built-in way to check what environment Drupal is running in? I'm coming from an environment where you would do something like if Rails.env.production? render partial: ...
0
votes
0answers
40 views

Taxonomy term with conditional php comparison fails boolean match (D7)

I'm trying to create a link in a block based on taxonomy of the node. I have a taxonomy Vocabulary called "Concerts" and a node tagged with the term of "concert1" I am able to use tokens within a ...
0
votes
1answer
609 views

How do I set up a shipping condition that accesses the value of a specific field in product?

I have a term reference field in product called "Weight" with values "Light", "Medium" & "heavy". I am using flat rate shipping service and trying to check the value of "Weight" field in ...
1
vote
3answers
550 views

Commerce - How do you setup conditional shipping options that relate to a specific taxonomy term?

My store sells heavy and lightweight widget items. I currently have 1 product type and have 1 term reference field that designates it as either light weight or heavy weight Now in my flat rate ...
2
votes
0answers
52 views

Views filter value based on a selected filter?

I'm trying build a garbage collection website where the user puts in their city, street, and street number and it tells them the day the garbage is picked up. Right now, I've imported about 14000+ ...
0
votes
3answers
979 views

How to write webform settings and conditions programmatically

I'm trying to create a webform on my node programmatically so that I can set it up to be used as for a specific scenario. What I wanted to do is have all of the components my client want to appear ...
0
votes
1answer
188 views

condition inside template.php (if logged_in/logged_out and else)

Is it possible to perform condition inside template.php (if logged_in, do these...else do that/ do nothing)? I am a front-end developer, and as a front-end developer, i like my code clean. So i'm ...
1
vote
2answers
153 views

How to create complex conditional clauses / queries?

I've been reading the documentatoin on conditional clauses and also studied the api description for db_and() and db_or() but I fail to create a $query with 3 ->conditions: select all between 0 ...
0
votes
1answer
145 views

How do you add a conditional to check if the Node object exists?

I have the following code, but how do I add a conditional to check if the menu_get_object() is grabbing a node object or not? Im mainly using this in my contextual filter in views and its throwing an ...
0
votes
1answer
75 views

Rules 2.x check if node is displayed as page?

In Drupal 6 to check if node is displayed as page we can use: Select the condition to add - > Check a truth value Truth value - > <?php echo $page ?> How to do this in Rules 2.x for Drupal 7? ...
0
votes
0answers
185 views

How to hide fields by default with webform-7.x-4.0-alpha6

How do I make conditional fields work properly with webform-7.x-4.0-alpha6 ? Expected behaviour : I created a webform content with a radio button field called "Assurance" (yes/no). The wanted ...
2
votes
1answer
174 views

Is there a rule condition to check if the url is the front page?

Just wondering if is there a rule condition to check if the url is the front page of the site?
2
votes
1answer
28 views

Rules: fire at adding term only when one of this term anscestors is other specific term

I'm trying to add menu items programatically by using rules - the item should be added after user will create a term, but I need a specific condition that I cannot accomplish - fire rule only if ONE ...
0
votes
1answer
635 views

Drupal 6 node_load with conditions

Here is the situation: I have two content types. Content type a has a CCK reference field for content type b. Now I am trying to load all the nodes from content type a that are referenced to content ...
0
votes
1answer
44 views

want to ask if there is a way that I can display a field from another content type to a field of another content type

Im quite new to drupal (7) and want to ask if there is a way that I can display a field from another content type to a field of another content type and applying condition at the same time? Here is ...
0
votes
1answer
178 views

How to expose a select field to Rules?

In Drupal 7, I have defined a new content type which has a checkbox field . The idea is that when a user chooses option A and submits the content, the system do something after creation of the ...