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.

-2
votes
0answers
9 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
1answer
6 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
12 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
9 views

Reuse entered field value on next page

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
20 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 ...
0
votes
1answer
30 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
21 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 [on hold]

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
12 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
0answers
47 views
+50

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
12 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
19 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
23 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 ...
-2
votes
0answers
16 views

Search api date popup filter for start and end date [closed]

Is there any module which can provide the date popup filter for the start and end date. I have searched but did not find it. I have checked the Search API ranges but it does not provide the date ...
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
28 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 ...
-1
votes
0answers
23 views

Where in the Views processing cycle can I read the filter parameters?

Because the exposed filters area takes up too much space on the screen, I want to collapse the exposed filters area and display a plain text version of the views parameters, rather than waste spacing ...
1
vote
1answer
78 views

How to programmatically update a user role name

I would like to update role name programmatically in Drupal 7. Does Drupal provide its own functions to do that, or do we need to query the database and update the name manually? Please note that ...
0
votes
1answer
18 views

Countries Additional Data Tokens not working

I'm using Pathauto and Countries to build path aliases that reflect the country and corresponding continent of a node. For example if a node's country field is set to Spain the url should be: europe/...
3
votes
1answer
35 views

Pass parameters for node access on RESTful call

I'm trying to figure out how to pass a filter parameter on a Services rest call. I've got a node of a specific type that I'd like to access through the Services module and rest. I'm testing with ...
0
votes
1answer
16 views

Send mail to product owner with Rules only when e-mailadress is available

As a follow up to previous questions asked by me: Send mail to product owner with Rules and Fetch Customer Profile from Line Items. I have the following question. I created a rule to send an e-mail ...
0
votes
0answers
20 views

ECK form in ctools modal doesn't behave in a familiar way

I use extensively ctools modal for entity creation/editing. I'm now integrating an ECK entity but the behavior is not consistent with other entity types (node, group, etc.) Typically when saving an ...
0
votes
2answers
29 views

Form multiselect item and url encoding with GET method

I have a form on a Drupal 7 site, which is submitted using the GET method to refresh the page's display using the query parameters. One of the parameters uses the select box, with the multiple option. ...
0
votes
1answer
29 views

Redirect to a specific page in ajax callback

How can I redirect to a specific page in an ajax callback using Drupal 7, I've already tested this method: function my_ajax_callback($form, &$form_state) { if (!user_is_anonymous()) { ...
0
votes
0answers
16 views

How to delete file entries on click of Remove button in file upload?

The orphaned entries of a file which is associated to the node should be removed when a file which is attached to a node is removed from it. Like associated entries from file_managed table. How to ...
0
votes
0answers
27 views

How to change the icon classes using mmenu

I'm new to the drupal community, so I'm sorry if I make any mistakes in posting this question. I want to change the menu-item icons for the Mobile sliding menu module. I realize that my question is ...
0
votes
0answers
10 views

Sending Backup to Google Drive

It seems that the Backup and Migrate module can only send backups to a server directory, node squirrel, FTP client, an amazon S3 bucket, or email, and plugins integrating google drive are only at an ...
2
votes
0answers
22 views

How can I prevent the theming layer being loaded for JSON requests?

I can verify that views-exposed-filter.tpl.php is being loaded for basic JSON endpoints that don't re-render any form fields: My autocomplete - /search_api_autocomplete/...
2
votes
0answers
18 views

How to access the fields of a custom node variable in a custom Rules event?

I have created a custom Rules event, following the instructions in https://drupal.stackexchange.com/a/215857/16550 The event provides a custom node variable: function MYMODULE_rules_event_info() { ...
1
vote
2answers
52 views

System settings form data access validation

I have created system settings form for an image using managed_file. $form['my_image'] = array( '#type' => 'managed_file', '#name' => 'Upload Image', '#title' => t('Upload Image'), '#...
0
votes
0answers
14 views

Index Form API forms with Solr search

My site uses Apache Solr search and Apache Solr Multisite Search. I need to be able to index some Form API forms created in custom modules so that they return in search results. For instance, when a ...
1
vote
1answer
15 views

Can't send managed file as mail attachment

I'm working on a form submit in a Drupal 7 project, the form has and upload file field, in my form submit handler I can get the file id, what I want to do is to send and mail which has as attachment ...