Stack Exchange Network

Stack Exchange network consists of 175 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
5answers
121 views

Use Color Field Value in Views Field Template File

I have two fields in my view: field_background_colour and field_heading The are both being pulled from nodes and displayed in a rotating hero banner. Each node has a different colour and different ...
0
votes
0answers
26 views

Align Bootstrap table sticky headers with columns when scrolling

I'm using Bootstrap theme in my Drupal 7 site. In a custom module, I create a simple table (not views) and the headers are aligned with the corresponding columns: When I scroll down the headers ...
1
vote
0answers
21 views

How to export the translation of a vocabulary?

I have 2 vocabularies. Vocabulary 1 and Vocabulary 2. Vocabulary 1 is exported in feature test_feature1 and Vocabulary 2 is exported in test_feature2. My site is multilingual. I want to export the ...
0
votes
1answer
34 views

How to call field label & values in custom content type page template

I have created a custom page--mycontent-type.page.tpl for customizing display with html tags classes & attributes. I'am unable to call that content type fields & their label. I've tried these ...
0
votes
1answer
20 views

Location subfields problem to render in teaser template node

I have tried render only two array´s parameters. Street and postal code but don´t display anything this code. <?php print render($content['field_mapa']['und'][0]['street']); ?>and <?php ...
0
votes
0answers
15 views

“Row Style Output” template file causes site navigation to break/disappear

I have the following in use in a view, to allow me to swap the order of fields/rows for every other row: <?php /** * @file * Using this template to swap ordering of view rows in view block. * ...
0
votes
1answer
43 views

Webform limit to multiple choice question

Anyone know of a way to take a multiple choice (checkbox) question on a Webform and only allow the person to select two or three options and all other options become disabled? Using WebForm module? ...
1
vote
1answer
38 views

Webform submission redirect to view with node ID

I have a view with table of data about a member of a sport club. I've placed a link to webform in the header that adds more rows into that view, which works fine but I'd like to redirect the form to ...
0
votes
1answer
15 views

User name in view arguments and title of page

I created a content type named "Post" and allowed certain roles to add posts on my website. I also created a view that displays these posts, as a page and block view. Now, I want to add a contextual ...
1
vote
1answer
25 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
55 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
42 views

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

$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
22 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
8 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
11 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 ...
2
votes
2answers
31 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
33 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
11 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
133 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 ...
0
votes
1answer
19 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
38 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 '...
0
votes
0answers
14 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 ...
0
votes
2answers
22 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
46 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 ...
1
vote
1answer
34 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
36 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
17 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
21 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
31 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
1answer
16 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
20 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
117 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
9 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
19 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 ...
1
vote
1answer
25 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
20 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
49 views

Where is the the site name and slogan set?

In the page--front.tpl.php template, I have the following code for site logo. <img src="<?php print $logo ?>" alt="example.com logo" title="<?php print $site_name_and_slogan ?>" id="...
1
vote
0answers
39 views

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

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 ...
0
votes
1answer
14 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
11 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
14 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
16 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
54 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
17 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
18 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
31 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
23 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
25 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 ...