pass result of Rules loop to variable to use outside loop

pass result of Rules loop to variable to use outside loop

In Drupal Commerce, i have created a rule that calculates the price by adding some fields (custom line items), and then sets a result. Now i want to make a loop (to pass over fields of a Field Collection with unlimited fields, so for each field collection set), and... read more
pass result of Rules loop to variable to use outside loop

How to add captcha to pdf version

I want to add a captcha to the PDF generator from the Print Module so that my server doesn’t waste time generating a PDF for robots and to prevent DOS attacks. There is a similar question asked, but the accepted answer doesn’t actually answer my question... read more
pass result of Rules loop to variable to use outside loop

Hiding the site domain name from the content writers

I’m in dilemma. I’m hiring content writers etc for my new sites who risk getting fired from me for not meeting my expectations. I want to keep my site names confidential from the world because of competition and other concerns. How can I hide the domain... read more
pass result of Rules loop to variable to use outside loop

Show node field as a carousel using jCarousel module programmatically?

I have a content type with a fiel called: fotos-carousel (image type) which I want to show as a carousel. I can’t use views to do this. I installed the jcarousel module and read the documentation to add a carousel programmatically. Then I create a tpl file to... read more
pass result of Rules loop to variable to use outside loop

Views query alter but Views calc is not rendering right result

I am alter the views query with this <?php function cc_invoice_views_query_alter(&$view, &$query) { foreach ( $query->where[0][‘clauses’] as $key => $value) { $explode = explode(‘.’,$value); if($explode[1] ==... read more
pass result of Rules loop to variable to use outside loop

Print module – Send by email issue

WHile the Printer-friendly and PDF versions work without any issues (that I can see), I am having issues with the Send by email option. The email gets sent but consists of nonesense. Any ideas as to why this might be happening? Eg. normal; } */ /* * 1. Corrects text... read more
pass result of Rules loop to variable to use outside loop

Multiple Date Argument Values with One Contextual Filter

I have a pretty simple view in D7: Fields nid title Contextual Filters nid date (from date, monthly granularity) Now I’d like to fetch some results for a specific node, but across multiple months. I was hoping to be able to pass in the contextual filter... read more
pass result of Rules loop to variable to use outside loop

how to display an image in theme using img tag?

I need to display an image in the page footer using <img> tag. In my page.tpl.php I have following block: <div id=”copyright”> <img src=”../images/logo.png”> <p class=”copyright”><?php print... read more
pass result of Rules loop to variable to use outside loop

Query returns 0 rows on JQGrid filter due to translated rows

I have a JQGrid table that can be displayed in different languages. The data for this table is stored as English text and translated when output. The JQGrid table can be filtered by text. The issue I have, is that when the JQGrid table is filtered, the query will run... read more
pass result of Rules loop to variable to use outside loop

Media module and views. Cannot make video image linked to node

Using drupal 7.20, Media 7.x-2.0-unstable7, Media Youtube 7.x-2.0-rc2, File Entity 7.x-2.0-unstable7, Entity View Modes latest version. Created new content type called “video”, added video field type “Multimedia asset”, Allowed remote media... read more
pass result of Rules loop to variable to use outside loop

Replacing field result with hook_views_pre_execute when replacing SQL query

I have a simple page view (unordered list) with just one field (content: path) and one contextual filter (nid). The view isn’t displaying the right path if the language of the selected node is not the current site language. For that reason i’ve decided to... read more
pass result of Rules loop to variable to use outside loop

copy term reference from one to other field

I have two fields (fieldtype = term reference) in the same content type and I would like to copy the settings from the first to the second one. After searching for a solution I found this thread but I think the description I need is just the one that is not available:... read more
pass result of Rules loop to variable to use outside loop

Shopping cart views are not show product links

I am using Commerce Kickstart V t-7.x-2.2 I realized the next: When I add a new product and I add to cart it, not show the link “view product” . But when I edit that product and modify something on product variation and save again. The link “view... read more
pass result of Rules loop to variable to use outside loop

Commit doesn’t show up in profile on Drupal site

I submitted a small patch on no trigger dependencies in job_scheduler_trigger.info. It looks like the patch worked, but when I look at the commits tab of the drupal.org profile, I don’t see any entry. When using Git, I created a new branch for the issue, made... read more
pass result of Rules loop to variable to use outside loop

Workflow edit but not publish

I am using workflow module to manage article moderation. I have created different state for that and for each state, I have set permissions using workflow content access. Now, when an article is flagged, I am changing it’s workflow state to say “s1”... read more
pass result of Rules loop to variable to use outside loop

How to display list of nodes that share the same Parent taxonomy term as current node

I have a vocabulary set up called (for example) “Produce”. And it has parent terms like “fruit” and “vegetable”. Child terms are like “banana”, “apple” and “cucumber”, “squash”.... read more
pass result of Rules loop to variable to use outside loop

How can I change the default system message shown on form submission

I’ve created a business card request form as an EntityForm and am scratching my head trying to figure out where in the module i can find the line – ( ” The submission has been saved ” ) . This message displays after every form... read more
Adding new rows on a draggable table via jquery

Adding new rows on a draggable table via jquery

I have a draggable table with preloaded “new items” – sorta like the Power Edit feature of the menu_editor module. Everything works perfect. However, I want to have a button that adds a new row via jquery. I was able to do this via the following... read more
pass result of Rules loop to variable to use outside loop

JS Resize function for div containing a a slideview slideshow and set as a page background

This is for a drpal 7 install. Is there a way to apply the same function they discuss in this thread https://stackoverflow.com/questions/10373349/height-and-width-of-background-picture-adapt-to-each-screen-size to a whole div instead of a single image? For example, I... read more
pass result of Rules loop to variable to use outside loop

Webform i18n doesn’t work

We have installed and enabled: Webform 7.x-4.0-alpha6 Webform Localization 7.x-4.x-dev Internationalization 7.x-1.7 We have created several webforms (in English). When I look admin/config/regional/translate/translate and select “Limit search to” to... read more