Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

1
vote
1answer
15 views

Calculate an average based on two existing fields

I want to calculate the average of two fields of type number, and have this average in a third field to make different sorts in views. For example: I have a content X which has as fields: A, with ...
-1
votes
2answers
38 views

How do I force the download of a .zip file, with contents retrieved using drupal_http_request()?

when i do this curl request my files are getting saved in drupal root instead of getting downloaded to browser in the bottom. can anyone help me what wrong am i doing here. below is the code i'm using....
0
votes
1answer
25 views

How to send mail with multiple images from node using Rules module? [on hold]

$language = field_language('node', $node, 'YOUR _FIELD_NAME'); foreach($node->YOUR_FIELD_NAME[$language] as $file) { echo drupal_realpath(file_load($file['fid'])->uri); } I used this code to ...
0
votes
1answer
16 views

How to save data in entity form?

I have created one entity form using Entityform module and Entity type is clients. Created 3 fields below. Name - (type: text) Email - (type: Email) Logo - (type: Image) Now I want to save data ...
0
votes
0answers
6 views

Default “Show Row Weights” On Node/Add (course options)

I am using Field Collections which allow users to add and order fields on node edit/add screen. I would like "Show Row Weights" to be set by default rather than the drag/drop. Is there a setting ...
0
votes
0answers
7 views

View listing all product displays that reference inactive product variations only

I am trying to build a view which lists all product displays that reference inactive product variations only. So I built a view on product displays, set a reference to product variations and filtered ...
-1
votes
0answers
13 views

How to access RTL style?

My website theme should support RTL, but it is not loading RTL style. How to enforce it to load RTL style? I saw the answers to how to load RTL style in RTL language, but I don't know in which file ...
2
votes
1answer
27 views

Cannot get subscriptions to send out at correct intervals

I set up the "subscriptions" module and have set it so that all members of the page have access to a number of panels. One allows them to set the frequency of emails, one allows them to pick and ...
0
votes
0answers
19 views

Get apachesolr module to work with solr 5.5 without reindexing

I upgraded my drupal apachesolr search module from 1.8 to 1.11 and I also upgrade the apachesolr version from version 4.10 to 5.5, and managed to upgrade the index folder so that it can be used for 5....
0
votes
1answer
24 views

Form alter overriding submitted values

I have a form_form_id_alter function that sets some default values and a checkbox checked. If I submit the form, with the checkbox unset and it fails validation, the re-rendered form re-sets the ...
0
votes
1answer
5 views

How to deactivate keyboard navigation when using the “Views Slideshow: Swiper JS” module

So I am using the Views Slideshow (7.x-3.9) module in conjunction with the Views Slideshow: Swiper JS (7.x-4.0) under Drupal 7.61 and it’s working great for my needs. But have run into an issue. The ...
0
votes
0answers
40 views

Drush 8.1.18 not working in Drupal 7.63 [duplicate]

Just updated a project to Drupal 7.63. Attempting to execute updb or other commands results in the following error: PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file ...
-1
votes
0answers
41 views

Why does Drupal keep saying security update needed after updating? [on hold]

I upgraded Drupal from 7.60 to 7.62, after the security announcement. After upgrading I ran drush cc all; drush rf to clear caches and refresh the update info. A couple of hours after doing that all ...
0
votes
1answer
17 views

Save content with current user roles and add filter to show only content with current user role

Using drupal 7, when creating new content of the type "Document" the current user roles must be added so I can later on show only Documents of his current role. For example, we have the following ...
1
vote
0answers
32 views

Cannot update my website from 7.60 to any higher version

My website is currently running on the agov-7.x-3.x-dev core and the 7.60 drupal core version. I tried to update the site to Drupal core 7.61, but site showed a fatal error. Fatal error: Class '...
-1
votes
0answers
60 views

Can't update/download 7.63 core [on hold]

drsh pm-update -y Update information last refreshed: Thu, 01/17/2019 - 13:36 Name Installed Version Proposed version Message Drupal 7.62 7.63 Update available ...
0
votes
0answers
10 views

How can I expose a multi-image field to the Views module such that different formatters can be used?

I'm building a custom query plugin for the Views module that uses JSON data from a web API, inspired by this article. I've created a series of field handlers that work fine. However, I'm struggling ...
-2
votes
0answers
20 views

How do I make a Panel visibility rule work when the element to check for has to be empty or not set?

I end up with the visibility rule completely hiding the element that is supposed to show. E.g. I want to hide a "New custom content" when taxonomy term for the field "Alternatives" has not been set, ...
0
votes
2answers
15 views

Views Contextual Filter by taxonomy in field collection

I have a Drupal 7 project I'm working on that's got me stumped. I'm building a site where the node (Decals) are applicable to models and years (This decal is correct for this model of this year). ...
0
votes
0answers
13 views

Ability to migrate or import/export paragraph bundle from one site to another

I have several custom paragraph bundles containing a large amount of customization. I do not want to re-create them. Is there a module that allows me to export a paragraph bundle and then upload it to ...
0
votes
0answers
14 views

Reuse entered field value on next page [on hold]

I would like to show on my second page of my Drupal Webform a value which I entered on the first page. On my first page I have a combobox in which I choose a specific value. This value I would like ...
1
vote
0answers
25 views

Links in stage environments are absolute and send users to live enviroment

This problem has been driving crazy for years. whenever I create a stage environment of a site, I copy the database from the production site. some of the links there - whether in the menus or in the ...
1
vote
1answer
34 views

How are values passed from the database to the templating system?

I haven't quite figured out how Drupal passes the values from the database or the back-end to the theme variables in the template. Which function does it use to disperse the variables to the ...
0
votes
0answers
16 views

How to token Insert nth element of Iframe?

Module used: Token Insert I have a content type with an iframe field which accepts multiple values. In my wysiwyg body field, I did a token insert. When I add this iframe field which has only one ...
-1
votes
1answer
16 views

User role update report

Could you let me know how to check how many users converted from one role to another for a specific period of time (for example how many changed roles from user to superuser from 01/09/2017 to 01/02/...
0
votes
2answers
24 views

Show View When Empty and Hide View When Not Empty!

I have a webform as a block which sets a value connected to the logged in user. I want to display the webform if it hasn't been filled in yet by authenticated users, and hide it when it has (based on ...
0
votes
0answers
9 views

Akamai module showing Drupal\akamai\CcuClientInterface [closed]

Iam working with drupal7 Akamai module version 7.x-3.0-alpha1. I cannot access the Akamai configuration from backend. Showing an error : Error: Class 'Drupal\akamai\CcuClientInterface' not found in ...
0
votes
1answer
13 views

Theme preprocess for module's template variables using dynamic path

I am doing templating for a module that adds a block in the module's folder so that the template can be there, and it may be overridden in the theme if desired. I want the module to support different "...
0
votes
0answers
18 views

Field content not showing in public view

I didn't build the website, and I'm new to Drupal. I've been asked to add a new field to an existing content type. I've added the field, and it shows up on the form for that content type, but the ...
0
votes
2answers
90 views

Print commerce pricing attributes to email receipt

Users cannot see what size or color shirt they purchased in the email receipt because tokens won't print the attribute fields provided by Commerce Product Attributes / Commerce Pricing Attributes / ...
0
votes
0answers
8 views

Data document format issue

I am trying to expose the node data in JSON format using view but having an issue to output the image_URL within the JSON data. If I change the output format to fields/Grid the image render and shows ...
1
vote
1answer
14 views

How to use language-specific menu items in URL aliases

I'm working on a site with internationalization from the source language, English, into a few other languages. Translating the pages has worked out fine; however, I'm running into trouble with URL ...
-2
votes
0answers
20 views

onchange autosubmit autocomplete not working for safari

I created a custom autocomplete form in Drupal 7. Its working fine for chrome and firefox. but it's not working for safari and Mac. My code: function fitnessHomeSearch_form($form, &$form_state) { ...
1
vote
1answer
23 views

Add another button removes the default values from my fields on node form

I have a node form on which two fields are displaying. One is a list of radio buttons which is required field. I am getting a value from url using arg(3) and setting the default value of that field $...
0
votes
1answer
15 views

Create a X discount for every Nth product from the same category

I know this is pretty complex task, I don't expect a solution, but a guide on where to start. (Drupal 7 is in question) I need to apply X% discount for every Nth products that are in the same ...
1
vote
2answers
37 views

Where to set Drupal site name and slogan values?

Hi so I have a Drupal 7 website. In the page--front.tpl.php for the homepage, I have the following code for site logo: <img src="<?php print $logo ?>" alt="example.com logo" title="<?php ...
1
vote
0answers
25 views

Distribution Commerce Kickstart 1.x - is possbile run Drupal Core 7.61 / PHP 7.2 ? And how

I have small and very simple Drupal 7 site based on Commerce Kickstart 1.x distribution (originally instalation profile, now "distribution"). The version of distribution is 7.x-1.53. It is last ...
1
vote
0answers
15 views

How to track down what is printing the menu item?

I made a custom view page with path to admin/print and I set it to no menu under Page Settings > Menu in the view edit page. And behold I login to my site today, there's a menu item in the admin menu ...
0
votes
1answer
11 views

How to show a specific amount of multivalue fields depending on a value of the parent node?

I need to show a specific amount of multivalued fields on a comment depending on the value of the node (field_optionsamount) that the comment is attached to. There are modules that allow to set the ...
0
votes
0answers
10 views

How do I show terms only permitted for a user/role?

I have a view which shows all terms of a vocabulary. I must add a filter that shows only taxonomy terms for which a user or a role has permission. I have installed the module Permissions by Term. Now ...
0
votes
0answers
10 views

How to edit an order to add the shipping line item to prevent AJAX error [duplicate]

Using Drupal 7.61 and Drupal Commerce 7.x-1.14 (+ Commerce Shipping 7.x-2.3 and Flat Rate 7.x-1.0-beta2) My client has (probably) deleted the shipping line item for an order and he has tried to edit ...
0
votes
1answer
10 views

The only email header field that can be replaced is the Reply-to field?

Under the heading E-mail header details in the e-mail settings for my webform I have set the option E-mail from address to the component E-mail, from the current webform. When the webform is ...
0
votes
0answers
11 views

Filter content of multiple content types on a single date facet filter

I have three content types. A, B and C. Date field in A is: field_a_date Date field in B is: field_b_date Date field in C is: The default node creation date I want to create a single date filter ...
0
votes
0answers
29 views

How to set the host entity for a field collection item

I'm trying to create the field collection item using Services field collection module and attach new field collection item to the current user. function _services_fc_create($field_collection) { $...
1
vote
1answer
14 views

Assigning new region in a display suite layout does not show contents placed inside newly created region

// rmch-content-2.tpl.php <?php /** * @file * Display Suite RMCH Two Column Header template. * * Available variables: * * Layout: * - $classes: String of classes that can be used to style ...
0
votes
1answer
14 views

Display any discounts only at cart / checkout stage

I am selling furniture, I also sell furniture accessories. Both of these have their own Product Types. I use 'Commerce Discount', 'Commerce Discount Extra' and a 'Workflow Rule' to offer a 20% ...
0
votes
0answers
29 views

Embed user edit form in a block

I am trying to embed current user edit form in block. Actually I want just to embed some of the newly added fields. I tried to follow this code: Embed some user profile fields in a block form But I ...
0
votes
1answer
21 views

What is the best way to forward visitors to my homepage to an external site but leave the backlinks accessible?

Maybe not distinctly a Drupal question, I have an older Drupal 7 site that I want to leave up for backlinks, but any new visitors I want to redirect to a new external website. So domain.com would ...
0
votes
1answer
16 views

Programmatically get the continent from ISO2

I am using the Countries module to assign countries and associated data to nodes. I am currently writing a custom token and only can access the ISO2 data for the value, not the associated data (full ...
0
votes
0answers
14 views

Advanced poll module doesn't work when the cache is on

I have a drupal 7 website, and I have advanced poll module 3.0 installed. I also have standard Drupal performance caching turned on. I notice that if I vote on the voting page, the results are shown ...