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
13 views

Can we make Superfish Top Menu not clickable but upon hover shows sub-menus?

I'm new to Drupal 7 and working on a website which is customized built using alpha theme. So far I'm good in understanding the working of it and creating content from the front end. For the main menu, ...
0
votes
0answers
18 views

How to fix malfunctioning “Other” option for textbox display on webform?

I'm having an issue with a textbox display on a webform. Whenever I click the the Other option the box doesn't appear. But when it's unchecked, it appears. option error gif link The solution I've ...
1
vote
1answer
34 views

How to call custom javascript function defined in js file from .module file

I have some custom menu defined for which in the page callback function I want to execute some javascript function defined in some js file which is included in .info file. The alert and console.log ...
0
votes
0answers
21 views

Rewrite field ampersand converts to &

I have an URL field that I'm outputting in my Services Views endpoint and everything works perfectly until I add a query string. The aim is to add UTM parameters to my URL through the rewrite field. ...
0
votes
0answers
10 views

Facet api active facet description

I'm using search api and facet api to create a faceted search. The facets are taxonomy terms in the sidebar. What I need to create is a block that shows the description of the taxonomy term in ...
0
votes
1answer
13 views

Why are non-required fields still showing up in my node_edit template using Page Manager

I am stumped. Certain fields are NOT required and yet they still show up if I add the base form to a node_edit variant in Page Manager (Node add/edit form).
0
votes
0answers
10 views

How to stop a custom form from being submitted twice simultaneously

We have an issue with a custom form's validation/submit steps being processed twice, resulting in unexpected behavior. This form creates an object with some unique fields, therefore, when the second ...
0
votes
0answers
13 views

Using lock_acquire for Drush batch operation

I am trying to improve a batch function so that it uses lock_acquire(), in order to prevent users from trying to run a large batch if it is already running. To do this, I try getting the lock in the ...
0
votes
1answer
34 views

Delete confirmation as popup

I have a view containing saved user webform drafts set up in a table format. I have given permission to the authenticated user to delete own submissions. When clicking the delete link located on the ...
0
votes
0answers
25 views

Commerce copy billing to shipping

I have a Drupal 7 webshop with commerce, and using the commerce_customer contrib module to handle adresses. I have enabled the "Enable profile copying on this checkout pane" and copying field data ...
0
votes
0answers
16 views

commerce_kickstart-7.x-2.64-core.tar.gz does not contain any .info files

Unable to update to commerce kickstart 7.x-2.64 using drupal update. I get the following error message: "commerce_kickstart-7.x-2.64-core.tar.gz does not contain any .info files" I have updated ...
0
votes
0answers
28 views

Can't run database update script, webforms not display webform tab

We are running Drupal 7.69 under PHP 7.3.13 on Bluehost. Not sure what happened, but when I try to browse to update.php to perform database updates, I get the prompts as expected to update the ...
0
votes
1answer
30 views

Can I turn a regular content type into a Commerce product display?

I have an existing working site with lots of content. I've come to the realisation that I could actually sell this content. So is there a way to turn my existing content type into a product display ...
0
votes
0answers
17 views

I cannot uninstall the Coder module

I am using Drupal 7. I go to the Modules page and Coder, Coder Review, and Coder Upgrade are all disabled. But if I click on the "Uninstall" tab, Coder is not listed. How do I remove this module ...
0
votes
0answers
11 views

Show all content referenced by another content, regardless of language

I have a "Movie" content type. It can be translated in 3 languages (fr/de/it). I also have an "Event" content type. It cannot be translated. It has a field that can reference a Movie (reference field)....
0
votes
0answers
12 views

How to flag a node and take the values from a node in a block and set these in fields of the flagged node

I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to ...
0
votes
0answers
28 views

After login I get blank admin pages

I have a D7 site up and running and working fine. Today I logged in to update some content, but I saw that the admin pages just show the system messages about necessary module updates and that's it. I ...
2
votes
1answer
46 views

Emoji works in a site but not in the other site on the same host

I am trying to enable emojis following Multi-byte UTF-8 support in Drupal 7. I have added the following to the settings.php file. 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci'...
0
votes
0answers
50 views

Module configuration screens not appearing

Update 2020.05.29: I've rebuilt the whole of my development site from the ground up, and I've just run into this issue again. I set up git on my production site and cloned the file system (now Drupal ...
0
votes
1answer
23 views

How to show or hide some content on a node view using Page Manager based on the url destination?

After certain fields have been set on the edit node form and saved, I don't want the node author to change these anymore and therefore I have created a new variant with a response code "301 permanent ...
0
votes
0answers
13 views

Content corrupting when reverting a revision

Our website is powered by Drupal 7 and have a bootstrap based rotating carousel on the home page, which has a link on each slide to a different page. This is powered by the Bootstrap Carousel module (...
2
votes
2answers
39 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
0
votes
1answer
42 views

How to load a internal page content within div? [closed]

I have following code in a basic page on drupal 7 <h2 id="tabs">Test Title</h2> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="content/test" ...
0
votes
0answers
37 views

HTML elements in schema.org module

I am using the Schema.org module for schema tags, I tried to add html elements but they never get printed. Is it possible to do this?
2
votes
1answer
26 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
0
votes
1answer
46 views

How to log to console when in a Drupal attach behavior?

I'm using Drupal 7. I have the following code that tries to log to the console: function mymodule_get_jquery() { $jquery = <<<JAVASCRIPT console.log("here"); (function($) { ...
0
votes
1answer
20 views

Feeds import from Restful Web Service module output

I have a D7 website, which expose a node through the module Restful Web Service https://www.drupal.org/project/restws It does exposed my website node in Json format. The only issue I have, is the ...
0
votes
1answer
19 views

Update UI lists modules/themes that are already updated

I have a D7 (7.69) site. On both dev and production, I can update a module (using the web UI - /admin/modules/update), apparently successfully, yet afterwards, that module stays listed as requiring an ...
0
votes
0answers
17 views

Using rules to populate a node reference field

I'm trying to auto-fill an multi-value entity reference field on a node with all of the other nodes that meet a certain criteria (promoted on the front page in this instance) using the rules module in ...
0
votes
1answer
22 views

how to be the last hook_page_alter called?

If you implement hook_page_alter in your own module, your hook will be called somewhere between all the other modules. I am trying to undo something another module is doing in hook_page_alter. ...
-2
votes
2answers
54 views

Incorrect handling of PHP sessions causes many 503 errors?

I use my personal website to host several images galleries, and for several months now, I've noticed that a lot of the thumbnail images appear broken and aren't loaded by the browser. This seems to be ...
0
votes
1answer
27 views

What do I do with the list of blocked IP addresses

I have a growing list of blocked IP addresses on my Drupal 7 site. I've installed the following modules: Honeypot, Captcha questions, Captcha, reCaptcha, and Hidden Captcha. They all work fine and ...
0
votes
0answers
23 views

Loop an Entity Reference Vocabulary Field

So working through my rule I would like to use a loop to execute an action. In my content type I have an entity reference to a vocabulary called "Contacts". I want the loop to loop through all the ...
0
votes
0answers
9 views

Entity reference add users autocomplete, autofill email in multiple fields

I have a D7 content node content type which has an entity reference users field with an autocomplete widget, addressfield. When I select an user the user entity and addressfield is automatically is ...
0
votes
0answers
21 views

Send email after node save based on a checkbox in a vocabulary

I was wondering if someone could help me with this. I have a content type called "News", this content type has three fields (Title, Date, Body) I have vocabulary called "Contacts", this vocabulary ...
0
votes
0answers
20 views

Cannot clone webforms between two groups

I have a Drupal 7 installation. The system description is Events management, handling registrations, payments, accommodation etc. There is a content type "Event" which is a group and members of this ...
0
votes
0answers
14 views

How to remove leftover/orphan url aliases?

For historic reasons, a site we are working on has a number of url aliases for taxonomy terms and nodes which no longer exist. I found this with direct sql query (in drush sqlc), e.g. select ua.* ...
0
votes
0answers
12 views

how bulk change each content type groups membership

i have a content type named students. Each student must only be in a single group. I noticed many students belong to two groups. How can i delete the second group, for each node of content type ...
0
votes
0answers
10 views

Adding a value to shipping cost by product type

Actually i have a drupal 7 with commerce, and only one product type with his shipping cost. I want to had 2 new product types (easy) but i want also to add a special amount when this types are on the ...
0
votes
0answers
24 views

Name in Loaded Drupal user is not available in Drupal Rules

I'm trying to create a Drupal Rule which uses the name of the Loaded Drupal user. But when trying to access that field from the Loaded Drupal account, the only fields available is Picture and ...
1
vote
1answer
78 views

How to set an exposed filter to enable current user to view nodes that he has not commented

On my D7 site I am trying to create an exposed filter where current users would choose whether he wants to see all nodes, or only those that current users have not commented. Tried adding 'Comment: ...
0
votes
0answers
17 views

How to exclude an user previously referenced in a field (User reference) from a Views block listing users?

Using Drupal 7.69 I have built a views block to list all users from a team, based on a taxonomy field as contextual filter (the team content type and users share the same taxonomy field). This block ...
0
votes
0answers
5 views

trying to merge 2 views with same fields into one output

Im using views 7.3 I have two views and tring to merge them both as outlined here https://drupal.stackexchange.com/a/212340/79382 I have created a module and included two files. foo_view_merge.info ...
0
votes
0answers
41 views

Database migration from Postgres to Mysql

We have a website in Drupal 7 running on Postgres database. We are planning to upgrade to Drupal 8 very soon, but we want to first migrate the database from Postgres to Mysql. I was just wondering ...
0
votes
0answers
19 views

how cache a view that has a field that is calculated with php code

i have a view, that returns results based on a data field, that calculated the number of nodes that fulfill certain criteria, an important one is that the numbers are calculated based on the group the ...
0
votes
0answers
13 views

drupal 7 views with 2 different contextual relationships?

I am using Drupal 7 with views. I have a view of all content from Organic Groups which the user is a member of. And a view of all content by users the current user has flagged. I am trying to get ...
0
votes
1answer
23 views

login form generated by drupal_get_form('user_login_block') does not log in

I have a custom module part of which builds a block with the login form function my_module_block_view($delta = '') { switch ($delta) { case 'awsImage_public_info_forms': $user_login = ...
0
votes
0answers
7 views

When terms are deselected in the term reference field, the referenced node still shows

I use the Term Reference Field in my content types to attach nodes to a specific term. I then use the View with the description "view to emulate Drupal core's handling of taxonomy/term", to show a ...
0
votes
0answers
32 views

Node won't edit or publish

The node has about 200 photos in an image field. Clicking remove on the image doesn't do anything, it gives image that it was removed, but it wasn't, on second try it gives error. The content on ...
0
votes
0answers
9 views

How can a node author administrate node flags?

I have a node type with a node flag. Which can be flagged by any user. I'm trying to do something which I think would be very simple but can't find any options or work around. Allow the node author ...