Questions tagged [7]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Where did my commerce token go after an update to 7.87

My Drupal 7 commerce setup sends out a couple of emails after an order is placed. It uses this token: [commerce-order:commerce-customer-shipping:commerce_customer_address] After updating to Drupal 7....
-2
votes
0answers
24 views

Would updating from 7.67 to 7.85 while moving to new server with a different PHP version work?

I have a 7.67 drupal installation on a server that will be terminated. I need to move the drupal site to a new server. This is how I tested this process: I downloaded all the drupal files of the ...
-1
votes
0answers
24 views

How can I use a token in a mailto link?

I installed the Token and the Token filter modules. I use a mailto link in the body of a block. <a href="mailto:info@mydomain.com?subject=The subject I want&body=Can you send me my ...
2
votes
0answers
35 views

Views performance: Teaser vs Fields

I have to create a view on a Drupal 7 site which will have 6/8 node fields. There will be some logic for which I will have to rewrite results as well as create a views-view-field-XX.tpl.php template ...
-1
votes
0answers
26 views

Views "freezes" SQL: strange bug since D7 and till D9

Sometimes I face with the following problem: views "freezes" SQL query. So I change filters, add/remove fields, but I see the output as well as SQL query is the same. The output can become ...
0
votes
0answers
8 views

How To Show Custom Completion Message Based On Webform Form Input

I'm trying to show a custom completion message in Drupal 7 using the Webform module. The message shown after completing the form would depend on what the user enters in the webform. I found this ...
0
votes
1answer
21 views

Changing a node alias to reuse his old url programmatically without be still redirected to the node page

I'm on a old site on drupal 7. I have a node with alias /url. Now I need to manage that page url programmatically, so I create an item in a custom module using hook_menu() in this way: /** * ...
0
votes
0answers
17 views

I'm writing a node migration (D7 to D9) module but only the title gets migrated

How can I get the body migrated as well? When I compared this with other working migrations, there didn't seem to be any differences in the code/anything wrong with mine. I also looked for alternative ...
0
votes
0answers
9 views

Use Node title as default value in alt field of field_image migration

I've been working on a D7 to D9 migrate project, and encountered an issue around field_image's alt value. The D7 site does not have all the field_image alt tag setup, so we'd like to use the imported ...
0
votes
0answers
14 views

How to change user password with Services 3.x?

I make a mobile app using Services 3.x module and Drupal 7. I would like to add a functionality for users to change their own password but I did not find a way to do it. I read and tested this, but it ...
-1
votes
0answers
6 views

Add nofollow to search string and search page

Can we add nofollow to any link with /search/ in the URL. https://www.domain.org/search https://www.domain.org/search/any%252Bsearch%252Bterm%20numresults%3A10%20sort%3Arelevance-rank%20format_result%...
0
votes
0answers
30 views

Under construction page when I enable https

I enabled https:// in a Drupal 7 site, but I get the Under construction page every time I try to access it. When I try to log in, I get a 404 error. Can anybody tell me what I am missing? I’ve used ...
1
vote
0answers
19 views

How can I programmatically configure commerce checkout pane settings?

In Commerce, we have custom pane and checkout configuration that applies to all orders. Per this d.o issue in commerce_features, this is supposedly doable. However, Commerce's default configuration ...
-3
votes
1answer
63 views

How to track recently viewed nodes using JavaScript on a completely cached website?

I want to make a block of recently viewed nodes on a website which is completely cached using Boost module (it saves a static HTML page for every request on the website). I don't want to disable Boost ...
1
vote
0answers
24 views

Problems in collations when restoring

I'm quite lost with this issue I'm experiencing, so any clue will be appreciated. Let's start with the "symptoms". Whenever I restore a Drupal 7 site that has been previously backed up with ...
0
votes
0answers
18 views

drupal view how can i filter results for certain node ids

i have created a view via the gui. I have tried to filter on the nodes i want, either with a normal filter and an or, and adding a few of them in a contextual filter. I face two issues: 1. i cannot ...
-1
votes
1answer
10 views

Webform Table missing in Views

I have a webform created on our site we want to be able to show the user its submitted values and everything seems to be working but the table, I have downloaded webform views. Please help i'm not ...
0
votes
0answers
25 views

Load view form with ajax missing ajax functionality

When clicking an element I get a form which is generated by a view (using https://www.drupal.org/project/editablefields module). The problem is that the ajax functionality of the form is lost (no ajax-...
0
votes
1answer
40 views

Time spent with custom module

Can anyone help me with this, I want to activate time spent module on my custom form module, and store the time spent on a field on my form. I think that I could do it on the file timespent.module ...
0
votes
0answers
14 views

Vertical tabs custom form Drupal7

I have a question to discuss about Vertical tabs on Drupal7 when we use it on custom module to make a form. Can we use a vertical tabs on a another vertical tabs? I know how we do to make a one ...
0
votes
0answers
17 views

Export data with one thousand values in contextual filter

I have a view (views data export) that I need to pass approximately 1000 values for a the contextual filter. I need to get the view results for certain 1000 node ids. Via the GUI it allows me only a ...
0
votes
0answers
14 views

custom module form radios fields & ajax problem

I have a custom form, that iI develop on a custom module to get some fields from a content type with an entity reference. All is good, I can get all information, and I can save the chosen value on a ...
1
vote
0answers
28 views

Filter GeoJSON feed on a value in the path

I have GeoJSON feed, created with a view in Drupal 7, that I want to filter on a path value in the url of the loaded page (/path/%). The feed is loaded as an Openlayers map on a page. The feed seem to ...
0
votes
0answers
19 views

Altering user_admin_account and user_register_form

I'm pretty new to Drupal and I'm trying to build a Drupal 7 custom module to alter the user listings table in admin/people. I would like to display the first and last names of the users. I've already ...
0
votes
0answers
18 views

Deleting a Paragraph Item results in AJAX POST error "Missing bundle property on entity of type node."

Working with an older D7 site. On it, we have added the latest version of Paragraphs to add some content items to a page. This all works fine. However, when trying to remove a Paragraph Item from the ...
1
vote
0answers
27 views

How to display all data from a paragraph field in views (Drupal 7)

I am currently a caretaker for a Drupal 7 website and I can't figure out how to group paragraph items in views. I have created a content type Products and one of the fields is called product variation ...
0
votes
0answers
7 views

Drupal7 Views relationship multi value custom column

Im using Drupal7 and views, views relationship Im displaying the results in table format with the help of view along with other custom tables as well as by using views relationship. I need a help in ...
1
vote
1answer
33 views

Use async with drupal_http_request()

I need to make an asynchronous call with drupal_http_request(). Is it possible?
0
votes
1answer
26 views

How to get rendered node according to active theme?

In a hook_entity_postsave() function in my custom D7 module, I'm doing the following when a node is saved: $_ = node_view($entity, 'full'); $html = drupal_render($_); But the renderd HTML ...
0
votes
0answers
9 views

WYSIWYG images in AMP Module

I have a Drupal 7 website, the site has AMP module installed. When I insert a image in WYSIWYG editor the site is not converted to AMP mobile version (in image fields there is no problem).How can I ...
1
vote
1answer
29 views

Output JSON string into PHPTemplate file

I want to output a JSON string as part of a data attribute on an HTML tag for a template in Drupal 7. For the life of me, I cannot figure out why it does not work (works perfectly in 8+). I need to ...
0
votes
0answers
11 views

Use Views Rules to loop over a user's view

I have a contextual view that lists the last expired Course Session of a teacher. I use a contextual filter like this: User: Uid whereby: WHEN THE FILTER VALUE IS NOT AVAILABLE Provide default value ...
0
votes
1answer
18 views

How to increase image resolution in gallery?

Not sure if I am asking the correct question here as I am more of a PHP coder than a graphics designer. My client's site has a Views img gallery which displays 3 columns wide on desktop and 1 wide on ...
0
votes
0answers
18 views

How do I know what properties and methods are available to an entity_metadata_wrapper object?

It may be easiest to start with an example. The entity_metadata_wrapper() function seems to do a lot of complex magic behind the scenes in order to return an object with all data related to the entity ...
0
votes
0answers
10 views

webform reference entity auto complete error

In my webform I am using user entity reference view, If I place select-list in field settings it works with format firstname, lastname. But when I use auto complete it always gives me error when I ...
0
votes
0answers
12 views

Override the field template in the view

I have a view that outputs the fields needed and I would like to change the template of one field in this view. I need exactly override the views-field-field-product-color-field-color-color field ...
-1
votes
1answer
24 views

Using Authentication API module

I'm trying to use the User Authentication API module. My goal is to add some post-processing after successful Drupal 7 login that posts JSON to an external web service. This would be work very similar ...
2
votes
2answers
68 views

Translation of a multilingual site into English

Note: This question is only focused on strings inside source files (PHP files). When you are creating a Drupal site in a non English country (let say France), you will create all your PHP files with ...
0
votes
1answer
27 views

How is the theme folder to use decided?

Under /sites/all/themes there are two folders called atlas and atlas.backup. Drupal 7 is pointing to atlas.backup and I don't understand how Drupal knows which theme folder to use. I want Drupal to ...
0
votes
0answers
6 views

The tid is being stripped out of my entity reference autocomplete value when I go to the webform submission edit page

I have a webform with an entity reference to a taxonomy and it's using an autocomplete widget. When I edit a webform submission, the ID is missing from the field and changes can't be saved because the ...
1
vote
0answers
20 views

Create a user map with a results tables below it

I've been searching around for the past couple months, watched a lot of YouTube videos, and read a lot of tutorials, and I've made a lot of progress with an alumni directory our team is creating. But, ...
0
votes
1answer
38 views

How do I print the display name?

I have a view with multiple pages. In the Views interface, I can set a display name for each display. Is there anyway I can print this name in the view itself, for example adding a Global Text field ...
0
votes
0answers
18 views

With Rules, how do I use variables with Calculate and Set a value actions?

Let's say I have an Entity with a custom integer field added. Let's call the field Global Total (field_global_total) On some event, I want to get the existing value of that field and store it in a ...
0
votes
2answers
83 views

How to make the float field accept decimal values?

I am using Drupal 7 and have a float field. It is used to enter prices. Most of prices I enter have decimals (e.g. 101.82, 99.88). Some of the prices are negative values (e.g. -55.52, -1009.88). ...
0
votes
2answers
37 views

How to add custom option value to select field in Webform and have them save with the submission?

I have a Drupal 7 webform when I need to dynamically populate a select field's options. I'm currently using hook_form_alter() and setting the values on the like so: <?php $form['submitted']['left']...
0
votes
1answer
8 views

Adding conditional comparison of two columns in relationship

I am trying to put value comparision while creating relationship. When i give direct value that works perfectly fine. but i wanted to pass column name with alias to get required results. This is ...
0
votes
1answer
49 views

Is there a way to pass a value to a hidden field to multiple blocks printed from a template file?

The scenario is a template (tpl) file outputting a list of contact forms where each one is unique to a term ID in it section on the page. I need to generate a custom options list per printed Webform ...
0
votes
0answers
20 views

Using memcached and ip_ban simultaneously?

Memcached is by no doubt an essential tool to speed up Drupal websites. Is there a way to use the ip_ban module in order to block certain countries from accessing my website before the cached content ...
1
vote
2answers
70 views

Do I need the trusted host setting?

Do I need the trusted host setting for a Drupal 7 site? If so how do I configure it? I noticed that Backdrop CMS has it in their settings file.
0
votes
0answers
30 views

How to get the field data

Hi i'm using entityreference, i hava an content type"test" that contain a field that refer to categorie and this categorie contain a field_theme also referenced to another content type ...

1
2 3 4 5
530