All Questions

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

Drupal Message Digest error

even after unisntalling message_digest module I have encountered the error in creating the new user id. So I have decided to manually remove the traces from the config field of Database. Now my whole ...
0
votes
0answers
11 views

Cannot get Accordion List to Default Open for a Single List Item

I borrowed code to create an accordion list. I'm trying to customize the code to get the first item in the list to be open by default, while the other 2 list items are closed. I'm new to Drupal ...
0
votes
0answers
15 views

How do I set the Layout builder modal to use the administrative theme?

I'm building a custom Drupal theme and wondering if there is a way to get the modal windows to use the default admin theme. I'm using the Layout builder module with a custom block that uses the Media ...
0
votes
0answers
18 views

Struggling with Clean URLs

I am in the process of upgrading an old Drupal 6 site to Drupal 8. I realize Drupal 6 is end of support but need to get the site working on my local Debian box, in order to work with it to get ...
-1
votes
0answers
17 views

How do I sell ebooks and audiobooks? [closed]

I have to sell ebooks and audiobooks on my website: A user can buy them and read them online. Users reach ebook or audiobok pages They can read synopsis or hear the book trailer. If they buy, they ...
1
vote
2answers
32 views

How do I enable a module by exporting the configuration?

I enabled these core modules: Language, Content translation, Config translation, and Interface translation. I exported the core.extensions.yml file, but when I placed the same file in the development ...
0
votes
1answer
15 views

Conditional fields on content type with paragraphs

I saw this question repeat in a few places without an adequate answer. I have a D8 site that has a certain contain type ('deals') which contains an array of 'deal' paragraphs. Each 'deal' contains a ...
1
vote
1answer
18 views

Override contrib Disqus behavior settings

I want to override a contrib module's library setting that is being attached to page using hook_js_settings_alter(). But, I am unable to change the setting that is being called in js. Here is the ...
-2
votes
0answers
20 views

How to show only my content?

I want to make a view that only show the content that is made by the user itself. For example, I have a library and it contains all content that I flagged, but I also want to show all content that I ...
0
votes
0answers
13 views

Using feeds_ex to import content to drupal using 2 steps API calls

I am trying to import data to Drupal 8 website using Feeds and Feeds_ex module and here is my scenario: I need to make a call to the first JSON API and extract the IDs from it, here is a sample of ...
0
votes
1answer
19 views

How can I alter methods in ContentTranslationHandler?

I want to alter some of the methods here: https://git.drupalcode.org/project/drupal/blob/8.8.x/core/modules/content_translation/src/ContentTranslationHandler.php How can I alter just some of the ...
1
vote
2answers
54 views

How can I remove the remains of the Mass Contact module not properly uninstalled?

I tried the Drupal 8 version of the Mass Contact module (8.x-1.0-beta2, released on June 2017). As I was not fully satisfied, I decided to uninstall it. Once done, I got errors when I tried editing ...
1
vote
0answers
17 views

Limit entity type/bundle for EventSubscriber inside services.yml?

I've got an EventSubscriber that I'd like to run for only a specific content type. Is there a way to do this from the services.yml file as an argument or something, or do I just need to check for the ...
0
votes
0answers
28 views

how to check if content type is

I ve got 2 type of commerce product.1 is the product the other is another type of product commerce. I want to check if the product type is then you can do something if not do another thing. Notes: ...
2
votes
0answers
36 views

How do I mock a service when using BroswerTestBase?

I am trying to use BrowserTestBase to write a functional test for a Form. The form populates some form elements with data retrieved from an external site. The client for this external site is injected ...
1
vote
1answer
20 views

Entity relation field view

I have a D8 entity reference field question. I have 3 content types: Student, Class, Book. A student can have several classes and a class can have several books. I have in student an entity ...
-1
votes
0answers
18 views

How to Show Modal Popup on URL Click which is present in Help text of User Registration form? [duplicate]

I am working on Drupal 8 User Registration Form and in that I want to show Modal popup on the click on URL. I searched for ways to implement this but not getting any. Please suggest the way to do ...
-1
votes
1answer
32 views

How to get all values of particular custom field of user entity using EnitityQuery?

I have added one custom field to user entity called as "customer_no". On User Registration Form, I want to check whether customer_no already exists. For that, now I want to Fetch all user's values ...
0
votes
1answer
35 views

How to get user's current language code in Views?

On Drupal 8.7.10 How can I get the user's current language code into Views as a raw value, such as 'en' or 'fr-ca'? This is not for filtering content. I need the raw value of the users' current ...
0
votes
0answers
14 views

How to add a (not available) relation to a View?

I have 3 custom Content Entities (ContractSubscription, Member and Person) with a bunch of field of which these ones: In ContractSubscription, the id field is defined by default and the field ...
0
votes
0answers
25 views

Custom form throws 'Cannot unset string offsets' error

I'm trying to build a form for my custom entity and so far the form is looking pretty good. However, when I press the Save button I get this error: The website encountered an unexpected error. Please ...
-3
votes
0answers
15 views

How to display user profile cancellation form in a modal window?

I give a specific role to cancel their own account. On profile edit when that user click the cancel button, a modal should open that are you sure you want to delete your profile? And submitting that ...
0
votes
0answers
17 views

Can't get to stub methods in abstract classes/traits

Everytime I encounter a method inside an abstract class or trait, I try mocking it following PHPUnit/Drupal documentation, but I keep getting warnings, i.e. I've got the following condition inside a ...
2
votes
0answers
28 views

How to access PrivateTempStore data when user registers

I have a form for anonymous user some steps before the user registers. I save the data in the PrivateTempStore. A final step is to register and log in. But when a user is logged in, the ...
-3
votes
0answers
11 views

OpenStreetMap Map exports to svg [closed]

I would like to export an image of a map OpenStreetMap from their cordenadas, which would in a node. I don't know very well how to do it because I don't see any functionality already done in Drupal ...
4
votes
1answer
281 views

Add '?' and '=' characters to query string [duplicate]

I'm trying to pass '?' and '=' symbols to a page using routing.yml company.calc: path: '/form?company={nid}' defaults: _controller: FrameworkBundle:Redirect:redirect _title: 'Calc' ...
-2
votes
1answer
15 views

How to resolve issue with the security strings appended in <img src> in gmail, ymail on sending webform mails?

I'm using Mimemail to send HTML mails on webform submission, which includes images also. Mails are getting triggered properly but when sent to gmail and yahoo mail, the image links are broken. On ...
-1
votes
1answer
14 views

How to Update db field value in hook_menu()?

I'm using Drupal 7, my requirement is to automatically update the node field value in a content type for a condition. I have used Hook_menu() for to get a link and if i use that link my code will ...
0
votes
1answer
13 views

Ajax callback is not working on views exposed filters

I am implementing dependent filters in views exposed filter for content:datasource search(Solr search). I have a requirement that in exposed dropdown field when a category is selected, by ajax i need ...
0
votes
0answers
11 views

How to replace an unhandled exception page with a custom landing page?

The Drupal website uses the simpleSAMLphp Authentication module, which allows single sign on functionality. When the user is not able to sign in automatically, they are returned to an unhandled ...
0
votes
0answers
21 views

Hook or event when Media file is inserted/updated/deleted but only when node form submitted

I created a field of type "Entity reference" and referencing an item of type Media. In other words its an image field. I would like to execute code with an hook or an event when an image is added, ...
0
votes
0answers
11 views

Duplicate form modes to other bundles

I have an entity type with 15 or so bundles - there are quite a bit of fields that exist on all bundles and the editor UI is somewhat complicated - lots of tabs, accordions, paragraphs, etc. I have ...
0
votes
1answer
43 views

Deny access for Authenticated Users

I'm using the moduke Permissions by Term and I love it. It works great and my complete system is now build around it. But I ran into a certain case and I am wondering if this is even possible. I ...
0
votes
0answers
9 views

SetError and change value in hook_inline_entity_form_entity_form_validate_alter

I'm trying to do a validation on a content type that's nested in a main content type. The validation works (if no birthdate or age is entered, an error message is displayed) but the field's borders ...
0
votes
1answer
17 views

Solr search with exact match

I am using drupal 8, search api and solr on our site. In views, I am using full text search with direct query option. Search is working for multiple words. What I want is when I search with double ...
0
votes
0answers
17 views

Create View that list all bundles of entity depending a taxonomy

I will try to be as clear as possible. The arborescence looks like that: | Taxonomy_Name | Tax1 | Tax2 | Tax3 | Tax4 | Entity_Name | Bundle1 | Ref to a Taxonomy_Name ...
0
votes
0answers
7 views

How to display 'Sort by' filter dropdown in results section?

I have a search page that has filters on the left bar and results on the right. I want to display the 'Sort by' drop down on top of the 'Results' section. I have a custom template for the results ...
-3
votes
0answers
12 views

Drupa 7 getting error of production file on local server such as xampp [closed]

drupal 7 website ulr on production server like www.drupalweb.com and i want to setup on local machine on xampp server as http://localhost/drupal_7/, but get encountered error how to config this?
0
votes
1answer
40 views

Set taxonomy field on node creation [closed]

I have a node type 'blog_entry' that uses a taxonomy reference (tags). The tags are created if they don't already exist, i.e. the reference field uses the option 'Create referenced entities if they ...
-2
votes
0answers
11 views

iterate on views in order to get views total rows programmaticaly, for each organic group member [closed]

In order to get the number of rows a view returns, I could add an element on Header, from the interface. I can cLick "Add" in header section and then add a "Global: Result summary" field. If i have ...
1
vote
1answer
48 views

MYSQL injections: Are they a threat?

For a while now, all my Drupal 7 and Drupal 8 instances have been under constant attack from South America or Asia, where the attacker is trying to infiltrate Drupal with MySQL injections. The ...
-4
votes
0answers
13 views

how to Display an uploaded image in a webform, rather than the filename? [closed]

IM using drupal 7 , while im uploading a picture via file upload .its coming up with name of the file , i want the image file to be like thumbnail
1
vote
0answers
19 views

How to attach xdebug to drush in docker

How can I "attach" xdebug to drush in a docker container? By that I mean, how can I have xdebug show me a history of an import script? And to look at the single variables that are defined and ...
0
votes
1answer
15 views

REST Api user login

I'm working on a react-native application with a clean D8 setup. I'm new to both. For some reason, my asyncstorage is being cleared on the emulator so I land on the login page even though I have an ...
0
votes
1answer
42 views

Notice: Trying to access array offset on value of type null in while installing drupal

I am new to drupal. I have downloaded and extracted drupal into a folder. I have installed apache and PHP on my Manjaro Linux. here is my drupal specific apache conf:- Alias /noone/blogindrupal "/...
1
vote
2answers
33 views

How can I filter child terms in an exposed filter by parent term from contextual filter?

I have a vocabulary of Districts with nested taxonomy terms like below. I have a view of taxonomy terms in Drupal 8 which has an exposed filter of all terms with parent and child. What I want is that ...
0
votes
0answers
30 views

Exporting and using site config / data? [closed]

I am still quite new to Drupal. I'm working through Lando to run my sites (locally for now) and I'd like to download my site elsewhere and actually edit, say, the blocks or pages I've setup. I'...
0
votes
0answers
11 views

Does the Link module allow “calculated” values?

I am using Link to create links which export content as JSON and XML, for use with RESTful Web Services As there is already a lot of content I have added 2 link fields for JSON and XML with defaults ...
0
votes
0answers
5 views

How can I use Tokens [uc_Coupon] with Search API with a custom coupon Server/Index?

I was wanting to create a custom block where an end user can search with a Search Input for an UberCart Store Discount Coupon via the Search API and after some 4 hours research, I'm stumped as to ...
0
votes
0answers
8 views

MY_MODULE_entity_bundle_field_info_alter not firing in multistep commerce checkout page

I am trying to add a custom validation constraint $fields['field_phone_number']->addConstraint('CommercePhoneNumber'); via MY_MODULE_entity_bundle_field_info_alter but am having trouble getting the ...

15 30 50 per page