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
1answer
19 views

Are changes to the user status stored somewhere?

I've made a pretty serious error of judgement creating a view for a client that shows users created before a date AND still active. The error was adding a date filter. This was meant to be used at ...
0
votes
1answer
19 views

Adding a script to certain pages

I am trying to add a script code on all but few pages. I tried the following code on the template.php bfile, but it doesn't work. function THEME_preprocess_page(&$variables) { if (isset($...
-1
votes
1answer
25 views

Drupal maintenance over several environments

I have a production environment for a Drupal 7 site. This environment is replicated to a staging environment, which we use for testing updates to modules and drupal core (same major version). We ...
-2
votes
0answers
21 views

How to move multiple nodes to another user [on hold]

Answering my own question. For example with code. $node = '30837,30845,30850'; $nodes = explode(",", $node); foreach($nodes as $nid){ $node = node_load($nid); // If you want to make sure ...
1
vote
0answers
20 views

Views callback work only once with advanced form block

this code work but the views is callback only once (reload only once), any idea to reload more than one time ? see in detail on drupal.org function modulename_form_alter (&$form, &$...
0
votes
0answers
23 views

LDAP Authentication without storing in Drupal

I'm new to Drupal and would like to authenticate with my LDAP server. I can connect them and I can connect with a user in my directory. However, I would like that when I log in, the user should not be ...
0
votes
1answer
14 views

How to use view's relationships to pull user entity reference data?

I created 2 new user fields for the user (object/entity) on my D7 site. Using views, I can select 'content' or 'user' for querying data. When I use views to query the 'user', the 2 new fields come up ...
0
votes
0answers
14 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
-1
votes
0answers
9 views

How to attach autocomplete to fieldset field. i have attached code but its not working. Drupal7

function ajaxengine_form_cruiseline_reservation_node_form_alter(&$form, $form_state, $form_id) { $form['#after_build'][] = 'ajaxengine_after_build'; } function ajaxengine_after_build($...
0
votes
0answers
13 views

Need to alter “No Paragraph added yet. Select a Paragraph type and press the button below to add one.” message - Paragraph Module

I am using paragraph bundle and I want to alter this message with my custom text "Please click on below button to add data".
0
votes
0answers
9 views

How to let Drupal Nodejs update views if create/modify node is through AJAX

The purpose to make simple todo list, where user can: Add new todo, Modify his/her existing todo, Mark his/her existing todo completed. all of the above in his/her home page (without going into ...
0
votes
1answer
20 views

Commerce Address Book – need to reuse customer profile without address

In addition to the default shipping and billing addresses I have added a customer profile in Drupal Commerce, where the customer can add additional info, like email for invoices, special marking on ...
1
vote
1answer
7 views

'Order of importance' type field

I'm using an Entityform to create a survey for a client, however one of the types of question they have is to rank a number of options in terms of importance to the user. Similar to how the ...
0
votes
0answers
6 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
27 views

Speeding-up the editing interface [closed]

We have a 3000-4000 page Drupal 7 install. The editing interface often takes over a minute to load. There’s talk of paying an agency to upgrade to Drupal 8 in the hope that this will fix the issue but ...
0
votes
0answers
7 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
11 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
13 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
24 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
19 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
25 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
7 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
12 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
22 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
12 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
25 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
34 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
14 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
40 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?
1
vote
1answer
22 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
27 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
78 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
29 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
16 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
14 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 ...
-1
votes
0answers
24 views

How can I fix this problem (Composer manager)

I have Drupal 7.61 I have this error message: Error: Class 'SensioLabs\Security\SecurityChecker' not found in composer_manager_sa_vulnerabilities() (line 83 of C:\laragon\www\drupal7\sites\all\...
0
votes
0answers
7 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
55 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
35 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 ...