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.

0
votes
0answers
9 views

How to import data from multiple urls using feeds importer?

I have two api urls. One returns all the products with product ids and the 2nd url return detail about a single product using the product id. So my requirements are. Request the first url, Get the ...
0
votes
0answers
8 views

How to compute field value of another content type using compute field module?

I have two content types. Let's call them "A" and "B". A has nodes with field_cost B has nodes with field_total_cost Content type A has a field_costumer which is referenced to the entity of Content ...
0
votes
0answers
8 views

Ckeditor with programmatic text_format field

I have ckeditor installed on my site, and when I use filter formatted textareas on my website where admin pages or fields were created using the UI, the ckeditor replaces correctly. When I use the ...
0
votes
1answer
18 views

How do I update the sitemap in D7?

I want to exclude some pages from the sitemap. I go to these pages/nodes, edit them, then go to the XML sitemap tab and set it to 'Exclude'. I then save and clear cache. But when I look at my ...
0
votes
1answer
17 views

Modal dialog doesn't work

I want to display ctools modal. I tried the following code. /** * Implements hook_menu(). */ function my_module_menu() { $items['my_module/%ctools_js/test-page'] = array( 'title' => 'Demo ...
1
vote
0answers
26 views

How to create a pair of dates (date_combo) using the Form API?

The Date module provide a field type called date_combo that allows a date feld to collect both a start date and an end date. It works as expected when I use the GUI to create a content type with a ...
1
vote
0answers
21 views

Multisite configuration with multiple domains and subdomains

Im using CPanel and Drupal 7. In CPanel I have created 2 domains and pointed to my drupal installation. In the drupal sites folder I have added a folder for each domain and added the settings file. ...
0
votes
0answers
8 views

use TableSort with multiple database tables?

I have a custom module where i want to show a table on a page. The rows of this table are the representation of a list of objects stored in database table A. Most of the columns show data from ...
0
votes
2answers
27 views

Enabling a contributed module under certain path only

Is it possible to enable a certain custom module under specific path only e.g. /store, and not load under other sections of a website? I am using Drupal 7.
1
vote
2answers
50 views

Programmically add multiple empty fields on a multiple value field/form

In Drupal 7, When you set a field "Number of values" to unlimited, it will show you 1 field on the creation page with an add more button. How would one go about so it shows 5 empty fields on the ...
0
votes
0answers
8 views

Export Text Format and CKEditor Profile with Features

First, this is not a duplicate of this, because I can't even get that far. The OP was able to put their CKEditor profiles into a Features module with all of the settings are stored in the Features ...
1
vote
1answer
15 views

Behaviour attach triggering twice

At some point in an update in the last few months, Drupal (7) started routinely triggering attached behaviours twice. At first I thought "this is my fault, my behaviours should check to see if they'...
0
votes
1answer
24 views

How can I create dynamic options based on the existing bundles from hook_drush_command()?

I want to create dynamic options based on the entity types (returned by entity_get_info() function) inside the hook_drush_command(). There's no bootstrapped Drupal available at all, so the db_query() ...
1
vote
0answers
9 views

Make interface strings configurable per language, identified by machine name

We are building a complex page layout where some labels should be not only translatable, but configurable per language, including English. The display logic is already custom code, so we are quite ...
0
votes
0answers
11 views

in my view user count field not displaying properly to site members, but displaying properly to admin

I have tried to achieve total og group members count and users count in a view. detail and complete information on this link user count and posts count in a og view in my case in above link comment ...
0
votes
1answer
14 views

Adding event listener on an AJAX button

I've tried to add a loading animation to the website in case if the user clicks on buttons or input submit buttons. It work, except on those buttons which using AJAX. For some reason those buttons are ...
0
votes
0answers
15 views

Comment API Endpoint for restful module drupal 7 not working

I am trying to put comment to a node using POST method to the endpoint api/v1.1/comments Here is the API file: <?php /** * @file * Contains \Drupal\restful_example\Plugin\resource\comment\...
0
votes
0answers
27 views

How to rename a content type programmatically

There are many answers and tutorials addressing the problem of changing the machine name of a content type, or migrating content types. However, I would like to rename a content type, without changing ...
1
vote
1answer
35 views

How to reference taxonomy used by other content type?

I have two content types: Content A and Content B Fields in Content A: Title, Location, Body Fields in Content B: Title, Type, Location, Body Location is a vocabulary (Au, Uk, Us, Ca, etc) Type is ...
0
votes
0answers
17 views

form field description tags stay after ajax rebuild

When i rebuild my page via ajax e.g. with a button that dynamically adds additional form fields, the description tags (tooltips) of the Bootstrap theme that were shown to the user in the moment of the ...
0
votes
0answers
14 views

Multiple aliases based on taxonomy terms

I have a content type which has a categories field that contains values from A-C. This is a multi-select list as below. I have configured the URL pattern as below. categories/[node:field-token-of-...
0
votes
1answer
42 views

How can I query a Drupal 7 database from Drupal 8?

I want to query users, nodes etc in my D7 database that I am currently migrating to D8 to compare with the migrated content. I want to use custom Drush commands to run some checks. Is this possible?
2
votes
1answer
30 views

Adding a line break or space in TWIG

I'm trying to configure email confirmations that are sent out by one of our web forms. At the moment they are appearing without line breaks but I want to be able to have line breaks between certain ...
0
votes
0answers
28 views

Translated meta tag values not removed after deleting page translations

I am using Drupal 7 and the Metatag module version 7.x-1.25 on a multi-lingual site. I have added a different meta tag for Canada translations, and I want to remove it. As I have added only the meta ...
0
votes
1answer
81 views

Taxonomy Term Field of a Reference Field in a Product not available in Data Selector for CheckOut Rules

I installed Drupal Commerce Kickstart 2 with drupal version 7.54 and drupal commerce Version: 7.x-1.14. My problem is I want to send email to the store owner every time an order is completed. So in ...
0
votes
1answer
39 views

Removing specific HTTP response header

I am trying to remove specific HTTP response header from my site. The header looks like this: Link: <https://example.com>; rel="canonical",<https://example.com>; rel="shortlink" So far ...
0
votes
0answers
18 views

Using MSSQL ROW_NUMBER() (or any window function) in D7 dynamic query with addExpression()

I have a query with a bunch of joins, conditions, etc that uses ROW_NUMBER() OVER(PARTITION BY ... ORDER BY ...) to group the results so that I can filter them further on the resulting row number: ...
0
votes
0answers
15 views

Understanding the threading functionality of comments

I'm working on building my own module, and it uses functionality similar to comments, so I'm trying to use it as a reference. My module uses replies, which are 'threaded' to a parent reply. There ...
0
votes
0answers
17 views

drupal_lookup_path returns false

I have Entity Translation, and a node (the original) with the following URL site.com/some/nice-url Then I have the Italian version site.com/it-it/some/nice-url2 Problem is that Drupal function ...
0
votes
0answers
6 views

Is Entity Translation module for Drupal 7 compatible with Internationalization and can they be used to translate menus?

I installed entity translation module for Drupal 7 and it works fine. However, I also want to translate menus and I found that Internationalization module can do that. The question is: are they ...
2
votes
1answer
20 views

Are 'safe_value' values generated dynamically from the 'value' value?

I'm changing the content of an HTML field using entity_metadata_wrapper, and I see 3 values, like value, format, and safe_value. My question is if I have to also edit safe_value or it will be ...
0
votes
0answers
8 views

AJAX rebuild single form element

I'm trying to get an AJAX-enabled form working. Users should be able to tab between fields using the keyboard, and when a user tabs to the next element, I want the name span after the previous-focused ...
-1
votes
1answer
74 views

Error opening socket ssl://api.nodesquirrel.com:443

I am using Backup and Migrate on D7. I am unable to backup to NodeSquirrel due to the following error: TYPE backup_migrate The NodeSquirrel server returned the following error: Error opening ...
0
votes
0answers
37 views

Ajax on Gmap marker placing

I've got a geofield and an address field on my content type, there is a geocoder module which can hide geofield and set it's value based on the addressfield value when the entity is saved. what I ...
2
votes
2answers
28 views

Does $element['#title'] need to be escaped with check_plain()?

I see (with grep) that the value of $element['#title'] in a render element is sometimes sanitized with check_plain(), and sometimes printed unfiltered. Which one is correct? Is the value considered ...
0
votes
0answers
11 views

Drupal form element AJAX calls only if it has changed

I have a form with AJAX-enabled textfields. I currently have it working such that when a textfield loses focus, its AJAX callback is called. $form['entry'][] = array( '#type' => 'textfield', '#...
0
votes
1answer
33 views

Submenu tree problem

I have a website build with Drupal 7 CMS and I am using the Submenu tree module. Everything was working fine for months, but few weeks ago I have received a feedback from the client that all the links ...
0
votes
1answer
23 views

Composer.json deletes dir even with preserve path

I am running composer on Drupal 7 and I am just trying to update my site; however when I run composer update, the composer deletes all the preserve paths I had specified. My structure is as follows: ...
0
votes
0answers
10 views

Error: Event registration is not enabled

So I have a basic node with a button allowing users to register, it is not a custom module, but when I click the 'register to the event' button in debug mode it shows that message on the log and doesn'...
0
votes
2answers
41 views

Change html tag in template file tpl

I have this template file for a view: views-view--ir-news--page.tpl.php But right now, I need to use Google AMP only for this view (Machine name: ir_news) What I want to know is if something like ...
0
votes
0answers
21 views

Validation after all other validations were successful

I have a form with several form fields and two validation handlers. function my_module_my_form_validate_integer($element, &$form_state) { // validation stuff } function ...
2
votes
1answer
60 views

Is it compatible with PHP 7.2?

We have a Drupal 7 site running Drupal Commerce. Our host has now informed us that they will be updating PHP from 5.6.3 to PHP 7.2. Is Drupal Commerce for Drupal 7 compatible with PHP 7.2? I have ...
0
votes
0answers
10 views

Views dependent filter not working correctly

I am using views dependent filter to apply multiple dependent filters in my view. The view is a simple listing page. I have multiple categories and set of different filters that will be grouped and ...
0
votes
0answers
22 views

Flag/Unflag Taxonomy term when updating Taxonomy field in user profile

I asked this question a few days ago: Send email to all users that are tagged with the same tag a node is when created I decided to go a different route and use the flag and rules module to associate ...
1
vote
0answers
16 views

Rule that sends one email out at specific time each day with view content in it

I have 5 different views that show different metrics within blocks on the front of my website. I want a rule that can send this information to me by email each day at a certain time. How do I do this, ...
0
votes
2answers
27 views

Print module download pdf file name change characters into HTML entities

I am using print module to generate pdf using dompdf library. I am facing issue with file name which node title have ampersand(&) sign, this character is converting into &amp;. For example- ...
-2
votes
2answers
26 views

How to create a rule and inject mysql code?

Can I create a rule on my drupal 7 website and that rule will: Whenever a user is logged in (only logged in users can see this content) and a certain content is clicked I want to write a mysql update ...
-1
votes
0answers
4 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page [on hold]

I want to add a quantity widget in the content of my product page. It wasnt present in my interface. I dont why the quantity widget shows up automatically in other content types. I viewed managed ...
0
votes
1answer
24 views

Multiple path aliases based on taxonomy term

I have taxonomy terms from A-Z and each article can belong to multiple terms. for an example, when I create a new article, I have a multi select list for terms. Therefore a particular node should ...
-1
votes
0answers
5 views

Put a product image on the tile view of products [on hold]

I had installed Drupal 7 Ecommerce Kickstart. Whenever I search something, the products list are shown with no cover images shown. I can only see images, when I particularly click the product link. I ...