Questions tagged [drupal-modules]
Drupal modules are add-ons for Drupal that allow you to extend, and customize Drupal functionality. Use this tag is for questions about available modules hosted on www.Drupal.org.
2,201
questions
0
votes
0
answers
7
views
How to integrate a Nuxt3 SPA into a Drupal site
I created a Nuxt 3 application hosted on Firebase which works well.
Now I would like to integrate it with my Drupal site.
I made a test application with these options to obtain an SPA :
ssr:false
...
0
votes
1
answer
74
views
Create tabs in drupal with paragraphs and bootstrap tabs
I'm working on a project that consists of transferring a laravel website to drupal.
One of the features that I'm having difficulty recreating is separating content information into tabs.
This content ...
1
vote
0
answers
41
views
Drupal 9: How to customise URL for multilingual site?
Im stuck with this...
I creating a multilingual site with Drupal 9 and i need to change the default base-url from http://example.com/en(language is English) or http://example.com/it (language is ...
0
votes
1
answer
35
views
Drupal google analytics counter module failing cron run hence data is not fetched
The plan is to use the google analytics counter module to show the view count of some belonging to a certain content type.
So i followed the documentation that is being provided (https://www.drupal....
0
votes
0
answers
24
views
how to implement drupal api for user registration and login source site and consumer in other drupal site
I have two Drupal sites: one named 'source' and the other named 'consumer.'
I have created a custom module for registration and login on the 'source' site, which includes the following endpoints:
'/...
-1
votes
1
answer
45
views
Drupal create custom 500 server error page
I'm currently working on creating custom error pages on Drupal 9.
I know I can easily add customized pages for 404 and 403, but how can I use custom pages for all possible errors like 401, 403, 500, ...
1
vote
1
answer
56
views
Drupal 7 to 9 migration - how to customize the migration yml generated by migrate-upgrade
Am trying to customize migrations so that i can map the data to specific fields but after i edit files am not able to place then to active configuration successfully.
My process so far
how i generated ...
0
votes
0
answers
36
views
Issue with Drupal 9 Visitor Counter Module: Visitors Count Not Updating
Description:
Hello Drupal community,
I'm facing an issue with the visitor counter module in Drupal 9. As a newcomer to Drupal, I've been trying to set up the visitor counter on my website, but it's ...
0
votes
0
answers
49
views
Inconsistent ability to adjust blocks using Twig due to naming conventions (underscores, etc)
I am having difficulties getting my Drupal blocks and regions to interact with my Twig Template Files. I suspect some of it may be syntax but a lot of it seems to be understanding what to name my Twig ...
0
votes
1
answer
14
views
I have few blogs on WordPress, which I want to upload those blogs into Drupal 9, what are the I have to do so
I have few blogs on WordPress, which I want to upload those blogs into Drupal 9 Blog content, what are the I can do it.I have a sheet with all blogs data, what are the best ways.
Trying to find a ...
0
votes
0
answers
17
views
Prevent unflagging of an entity in event subscriber
An action in a node view is supposed to unflag the node. But when a certain condition is met, I want to prevent unflagging of the node. I tried flagging the node again in the event subscriber method ...
0
votes
0
answers
19
views
Automation of publishing in Drupal using Rules and Workflow
I am currently working on automating status changes in Drupal, my task is to use the Rules and Workflow modules to configure status changes after a certain period.
For better understanding, I'll give ...
0
votes
1
answer
30
views
Camunda and Drupal Integration File Not found
I am working with drupal camunda integration.
I have used DDEV for the setup of Drupal. my system version are:
Drupal version 10.1.1,
Web Server Nginx/1.22.1,
PHP Version 8.1.16
Database Version 10.4....
0
votes
0
answers
26
views
Attempt to create field name which already exists and is active
I have created a custom module. Show me an error when I want to enable my custom module. The error is -
FieldException: Attempt to create field name windfarm_unit_count which already exists and is ...
2
votes
0
answers
23
views
How to configure the decimal inputs in Better Exposed Filter module in Drupal?
I have a problem with using Better exposed filter 6.0.3 in the view to filter the number values with decimal. In range minimum, range maximum and Step it shows like it allows certain decimal digits ...
0
votes
0
answers
48
views
Drupal : Accessing "Json Page" type content as headless API with "JSON:API" module
I've created a JSON Page type content on Drupal 8/9/10 as below that has JSON Config as below.
I used this field to build the headless content that needs to exposed to UI Apps.
I want to expose this ...
0
votes
1
answer
60
views
Ajax in custom module of Drupal
I have one custom module created in drupal having one form.
public function buildForm(array $form, FormStateInterface $form_state) {
$form['conditionOrDisease'] = [
'#type' => 'textfield',
...
-1
votes
1
answer
229
views
How to add a slideshow in drupal 10
I am unable to add a slideshow in drupal 10
I have installed the view slideshow module and enabled it. Further i don't know how to proceed. In configuration->user Interface it must show views,but ...
0
votes
0
answers
24
views
Class 'EspressoDev\InstagramBasicDisplay\InstagramBasicDisplay' not found in instagram_block_cron() Error
I am using Drupal 8.9 and a module named Instagram block.When i updated the module "Class 'EspressoDev\InstagramBasicDisplay\InstagramBasicDisplay' not found in instagram_block_cron() " ...
0
votes
1
answer
14
views
Fatal error: Cannot use Drupal\views\Plugin\views\area\TokenizeAreaPluginBase as TokenizeAreaPluginBase
I encountered a fatal error in my Drupal project and need assistance in resolving it. The error message I'm receiving is as follows:
Fatal error: Cannot use Drupal\views\Plugin\views\area\...
0
votes
1
answer
14
views
Edit js for some libraries like Slick in Drupal
I am new to Drupal and I want to change slick library in js file named slick.js, but I don't know after change how can I apply these changes to my site. after I change slick.js and flush all caches in ...
0
votes
0
answers
37
views
Drupal : Custom access for a web-based custom type
For my Drupal site, I maid a custom type named MyCoolCustomType.
I'd like to grant access to view this customtype only to certain condition on user role and properties of the custom content itself (ex....
0
votes
1
answer
44
views
In drupal 10, Can i use devel generate module for ecommerce site?
I have content type with fields Product ID, Name, Image, description, category ( taxonomy ), price.
Can i Create sample products and select the respective sub categories with devel generate module ?
0
votes
0
answers
41
views
Drupal 10 : Why my private contenttype's fields are viewable by anonymous?
I made a custom contenttype in drupal UI, and I want it to be available only for editors so I don't check the box "published" when I'm on my custom_contenttype_edit_form.
I grant to editors ...
0
votes
0
answers
15
views
Drupal : Can I have sound and playback at the same time?
My site is built with Drupal.
I have integrated a player on my website reacheable with www.alafiatv.bj But when I unmute the sound, the video playback stops. Even if I restart playback, it doesn't ...
0
votes
0
answers
89
views
Notice: Trying to access array offset on value of type null in theme_views_mini_pager() (line 1092 of sites/all/modules/views/theme/theme.inc
I finally got my views field handler showing, but somewhere there is a code error. I got the code from a Drupal 8 example: https://www.drupal.org/project/vbo_export/issues/3184888 but I got in Drupal ...
1
vote
0
answers
106
views
Composer updates at scale on Drupal 9 containers (ECS Fargate)
******EDIT
I've boiled this down to the following:
I am moving my composer require commands to image build time rather than run time. I am not sure if this is ideal but it feels better.
The composer ...
7
votes
1
answer
4k
views
Unable to create account in Sendgrid. Getting, You are not authorized to access SendGrid, please contact
I'm working with drupal 10, i want to work with Sendgrid module
I tried to create sendgrid account.I have entered all the basic details it asked. Then I got two mails Two-Factor Authentication & ...
0
votes
0
answers
60
views
Try Better counter for views for row-counter export, not showing up in view fields area , this because standard counter doesn't work for export csv
Drupal 7: The standard views counter "Global: View result counter" doesn't work with export views results to csv. This is also a problem in Drupal 8, but I want to solve it still in Drupal 7 ...
0
votes
0
answers
10
views
How to get node data from comment email notification with hook_mail_alter
I'm using the comment_notify module. Looking to change a part of the email sent out when a comment is made with a custom module using the hook_mail_alter() - Problem is as far as I can tell, I can't ...
0
votes
0
answers
78
views
How to place exposed sort options as a dropdown above the grid? - Drupal 9 views
I have a view in D9 that has exposed sort fields. I want to place the exported sort fields as a dropdown above the grid results as below:
The grid above are the view results. I want to place the &...
0
votes
0
answers
58
views
How do I troubleshoot Composer's InvalidArgumentException with Drupal 10
I'm a beginner who has just started a Drupal project (version 10.0.7) on a shared hosting site (Hostinger) with composer installed. When I try and install any modules through Composer I get the ...
0
votes
0
answers
13
views
How to ensure any drupal contributed module is secure
I am using Drupal for my website and I always use contributed modules for themes or to extend feature.
I am not sure which tool should I use to scan these modules before applying to my code. Also it ...
0
votes
1
answer
543
views
Get all fields and data in Drupal 10
I have a Drupal 10 instance on my local machine. I want to get all content types and their fields and the data with SQL.
So if you have for example "article" I want to get the article's ...
0
votes
0
answers
36
views
how can i query to database using drush?
i installed drush using composer for my drupal9 project.
but my drush cannot query to database.
composer require drush/drush
and used composer to install ckeditor iframe module
composer require '...
0
votes
0
answers
15
views
issue enabling a drupal module using drush [duplicate]
I am facing issues enabling ckeditor iframe module in my drupal9 project.
installed drush using composer
composer require drush/drush
and used composer to install ckeditor iframe module
composer ...
0
votes
0
answers
20
views
How can I import csv data to Drupal 7 Content Type?
I am using Drupal 7.69
My use case:
Expose Authors(only Name) via REST API
Upload Authors data which is in csv format
Any help will be appreciated.
Thanks
0
votes
3
answers
338
views
Drupal 8:The website encountered an unexpected error. Please try again later
Drupal 8:The website encountered an unexpected error. Please try again later. i am getting this error while installing the drupal 8
(https://i.stack.imgur.com/uIBeh.png)
I have already installed the ...
0
votes
0
answers
11
views
How to add Drupal core workbench_access to a custom content entity?
I have a custom content entity and want to use our current workbench_access scheme for control access.
This article says that workbench_access now supports multiple access schemes and maybe I can use ...
1
vote
1
answer
133
views
How to intercept Drupal BigPipe output or js-bottom-placeholder?
I need to intercept (hook) and alter the output (json) prepared by the function sendPlaceholders() of core/modules/big_pipe/src/Render/BigPipe.php that is
...
$json = $ajax_response->getContent();
...
0
votes
0
answers
59
views
Drupal.org automated tests failing with a composer error
I have a module on drupal.org.
I have noticed that automated tests for it have started failing with the following errors--
Drupal.org error
cweagans/composer-patches contains a Composer plugin which ...
0
votes
0
answers
306
views
Creation of dynamic property Drupal\commerce\Plugin\ is deprecated
AFAIK, Drupal Commerce 2.33 is not fully compatible with PHP 8 yet. Still, I installed the module in Drupal 10 which is run only on PHP 8.
When I flush all caches, I receive the error
Deprecated ...
0
votes
0
answers
25
views
Restrict Access by Reference (Drupal 9 or Drupal 10)
How to restrict access to content unless a user references that content? For example, through a user reference field.
What modules or techniques are used to do this?
I have tried to use the modules so ...
0
votes
0
answers
17
views
Drupal 9.4 is ignoring my translation info
The ...info.yml:
name: CEnquire
version: '9.x-1.3'
description: BlahBlah
package: CPackage
type: module
core_version_requirement: ^8 || ^9
interface translation project: cenquire
interface translation ...
0
votes
1
answer
61
views
Using a local json/geojson file from javascript a custom plugin
I pretty new with Drupal and I am writing a custom map module.
My module work fine, I can dispay my map and informations but I wrote the calling of my geojson with an hard path and I didn't find in ...
0
votes
2
answers
167
views
Drupal: process order change/ how do I overwrite password suggestion tips
I want to overwrite the password suggestion tip that's configured in Drupal core to show
'Make it at least 14 characters' from 'Make it at least 12 characters'.
Or simply remove the whole password ...
0
votes
0
answers
210
views
Drupal 10 and Group module: using Views to list entities and relate to a field in the Group membership plugin
I'm stuck with something I'd like to achieve using Drupal 10, Views and the Group module.
The point is to have a website allowing parents (Users) to create a family (Group), add children (Nodes), then ...
0
votes
0
answers
136
views
Unable to install Serialization (CSV) module in the server
I am trying to install Serialization (CSV) in our project ,It's installing and working in in the local server but when i am trying to install the same module in the server it's not installing. We are ...
0
votes
1
answer
840
views
Class Drupal\twig_tweak\Twig_Extension not found in Drupal 10
I'm developing a website on Drupal 10 and I need the module Twig Tweak to be installed and working in order to use drupal_entity() in templates.
I copy-pasted the module from the /modules directory of ...
0
votes
1
answer
92
views
create a date field with only month and year in my custom form?
I'm new to drupal, can anyone tell me how can I create a date field with only month and year in my custom form?
I have found a module for it but I want that field in my custom module form.
I have ...