All Questions

0
votes
1answer
59 views

Error when upgrading to Drupal 8.7.1 on module menu_link_content

When running database updates (on domain.com/update.php) from 8.6.15 to 8.7.1, I got the following error: module menu_link_content Update make_menu_link_content_revisionable Custom menu links have ...
-1
votes
0answers
28 views

how to do registry rebuild in drupal 8?

Moving one module from a site/mysite to the /modules/contrib folder generate file access errors How can i rebuild the whole thing?
-3
votes
0answers
15 views

Unable to import yml configuration

I tried to import yml configuration from the interface (Configuration synchronization) as well as Drush. But getting the following errors: I am using the bootstrap theme 8.x-3.17. Getting error in ...
0
votes
0answers
9 views

Drupal link value is showing the entity [duplicate]

The link field shows uri:"internal:"... and uri:"entity:" as a prefix in the field link URI. how can i fix that ? Thats how i get my fields uri value. {{ paragraph.field_stage_element_hp_link.uri....
0
votes
0answers
40 views

Loop Paragraph types with all values in field--field-page-detail-paragraph.html.twig

I have two paragraph types called First Type & Second Type and added Image & Text fields on it separately. I have created the basic page & added the two above paragraphs(First Type & ...
1
vote
2answers
39 views

Can I remove the experimental module warning from /admin/reports/status?

My drupal 8 site is showing a experimental modules enabled warning under /admin/reports/status. I vaguely remember to have them enabled at a certain time, but I forgot where. I don't use any of them, ...
0
votes
1answer
30 views

Redirect user to a specific url when click on a Firebase Push Notifications from a smart phone

I am using the firebase module in drupal 8 to send android and ios push notifications for my web-app drupal 8 site... and it is working well for me! However, I want to redirect user to a specific url ...
1
vote
1answer
20 views

How to correctly format a POST request to the file_upload Rest Response?

This is my first time posting a StackExchange question, so thanks in advance for your patience. We are attempting to upload an image to a headless Drupal application using the File Upload REST ...
1
vote
0answers
39 views

Managing custom themes and modules using composer or git

If I am managing my drupal 8 site using the Composer workflow, how should I go about incorporating/managing custom themes and modules? Let's say I have a custom theme that I manage using gitlab. Do ...
0
votes
0answers
24 views

How can I configure half dollar amounts to be displayed as $n.50 while whole dollar amounts display as $n?

In drupal commerce, I have a product variation type with a price. In the 'manage display' area, in the 'format' section I have 'strip trailing zeroes' selected. My prices are all either whole dollar ...
0
votes
0answers
13 views

Using Layout Builder With Menu Items

I recently just updated to 8.7 and for the most part everything is working well. In my dev environment I was working on a new feature using layout builder with menu_item_extras to apply a layout to ...
-4
votes
1answer
26 views

Use computed twig to get last item in a multi value composite field [duplicate]

I want to use a computed twig element in a webform to give me the value of the last item in a multi value composite field. the name of the field is destinations, and it has a departure_date field and ...
0
votes
0answers
35 views

Just upgraded to 8.7.1 and site crashed [closed]

Just upgraded to Drupal 8.7.1 from 8.7.0. Used Composer and drush, following a checklist I have used several times. Did not see any errors or problems during the process, but after it completed and ...
0
votes
0answers
11 views

Options for bulk publish/unpublish of content

I'm trying to see if there are any options (contrib modules) for an admin action (/admin/content) to bulk publish/unpublish like some of the other options listed? Basically, I'm looking for: the ...
0
votes
0answers
11 views

Drupal How to lay out admin content to page?

Is there any option to lay out content displayed in this screenshot: on the page of the website:
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'...
1
vote
1answer
17 views

Refreshing entity definition

I've got a D8 media type that holds information obtained from an external source. The information comes in name value pairs that I wish to save as individual fields, mostly so I can index them easily ...
0
votes
0answers
22 views

Running a site with a reverse proxy and subpath

I'd like to run a Drupal 8 site from behind a CDN as a subpath. What that looks like is: Canonical D8 install: somedrupalsite.companyname.com CDN edge domain: www.example.com D8 accessible at: www....
-4
votes
0answers
17 views

How to check whether module is enabled or not in Acquia site factory hooks?

I have a requirement to put up condition based on module status in acquia site factory hooks. Is there any way to check whether the module is enabled or disabled in factory hooks. Please help.
-1
votes
0answers
11 views

Content type profile stopped saving new fields, editing old fields still works

My student association still uses an ancient drupal 6 website, I am currently working to recreate it in drupal 8 but until then the drupal 6 site is still critical. The server running the site was an ...
-2
votes
0answers
32 views

How do I send a link from a webform that automatically logs the user in?

I want to send a link via an email that will automatically login the user and redirect them to the webform i want them to view. I cant find how to do that with drupal 8. I see some answers for ...
-1
votes
1answer
18 views

how to add a “preview” button to a webform submission

I am using version 8x-5.2 of webform. I cant see an option to add a preview button. Can someone explain where to add this button, or do i have to use a later version of the webform module to get ...
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() ...
0
votes
1answer
20 views

Unpublished taxonomy term keep showing in main menu and contextual filter

I'am creating a Drupal 8 multilingual side, i have a main menu and a contextual filter that uses taxonomy term. in english version i wont translate all those taxonomy, so i dont want theim to be ...
0
votes
0answers
18 views

D8 EntityQuery condition: entity reference field is empty [duplicate]

I need to get (programmatically, using entityQuery) all the nodes of type "contact" where the entity reference field "field_associazione_contatto" is empty (it is not a mandatory field). I've tried ...
0
votes
0answers
36 views

How to handle config changes on core update?

I have an 8.6.15 site managed by composer and drush. The db and config exports are in sync. Roling our new features using drush cim on production works fine. I now update core to 8.7 by running ...
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
1answer
20 views

Permission denied for a route implemented by a custom module [closed]

Hello I have the same problem with the following code: first_module.routing.yml: first_module.content: path: '/first' defaults: _controller: 'Drupal\first_module\Controller\FirstController::...
0
votes
1answer
14 views

Search info_split is empty

I need to customize the search results of a drupal 8 (8.7.0 currently) page a bit and need the node_type for this. According to search-result.html.twig, this should be stored in info_split.type, but ...
0
votes
1answer
55 views

Clearing cache takes “long time”

I am absolutely new in Drupal. I am trying to set up my first "Hello world" module and I am playing with it. Every time I clear cache using Drupal Console, it takes 15 seconds, which is an eternity ...
0
votes
2answers
22 views

Search Nodes by reference field target ID

I have a Node by the Project bundle name. Each Project has a reference field to another entity by the name of Contact, that this contact entity has the Client bundle. I can get the Client target ID ...
3
votes
1answer
23 views

Calling a JS function after managed file has completed uploading

How can I call a JavaScript function after a file has completed uploading using the Drupal Form API (FAPI) managed_file element?
0
votes
1answer
42 views

How to upgrade to Drupals latest version via Composer?

Currently I have 8.6.13 installed. composer update drupal/core --with-dependencies Package "drupal/core" listed for update is not installed. Ignoring. Loading composer repositories with package ...
0
votes
1answer
23 views

How to get text from radio option value

How do I get the option text from the submitted value of the radio field in Drupal 8 webform submission? I have written a rule action condition on webform submission where I am storing data in a ...
0
votes
0answers
13 views

Filter content moderation view according to user roles that I currently login to the site

The view I try to filter is only accessible to authenticated users and they have defined roles, that is, it is an administration view. I have several types of content and I want to show in the ...
0
votes
1answer
41 views

Set and Get $form_state with ajax button submit function?

In my case, I need to get a list of config files to show in a form element. Extending from this Drupal Answers Q/A using form_state->set() inside ajax callback but cannot get the value back outside ...
0
votes
0answers
24 views

How to get the media path?

In my custom module, i would like to list all medias (ex : .pdf) and parse each media content. From my list of media identifiers (mid), i would like to open the file and parse the content but i didn'...
0
votes
1answer
26 views

Adding a custom data-attribute to a field in Views

In a view I need to add a custom data-attribute to the row output (just like classes are added). Simply rewriting the output doesn't work because XSS attribute filtering strips the attribute. How can ...
0
votes
0answers
17 views

I accidentally deleted basic_cart_vat, there's a way to a restore this field?

I accidentally deleted the field basic_cart_vat from Orders, now I'm receiving an error because I don't have the field. InvalidArgumentException: Field basic_cart_vat is unknown. in Drupal\Core\...
1
vote
0answers
21 views

Migrate Update already imported content from the Json source

I have two JSON source files of product categories which contain duplicate products. Here's the link of the two source JSON files https://gist.github.com/naveenvalecha/...
0
votes
0answers
25 views

How to turn my database values into a Entity Object?

I have a form I am creating that should put in the User Entity ID of whoever assigned the task. The code below gives the following error: InvalidArgumentException: The #default_value property has ...
-3
votes
1answer
24 views

Running Drupal's drush cron jobs with a newer PHP version from Software Collections

How do you run Drupal's drush cron jobs when your server has a newer PHP version installed from Software Collections? The server is running Scientific Linux 7, which comes with PHP 5.4, but we need, ...
1
vote
1answer
21 views

How to populate select field from View result like in

In a custom content entity, I have defined this field $fields['from_seliste_id'] = BaseFieldDefinition::create('entity_reference') ->setLabel(t('Offreur')) ->setDescription(t('Le SÉListe ...
0
votes
1answer
16 views

Why are the terms filled when they are actually empty?

Below is the JSON output of a product I am having the issue with: { "StkGrupKodu1" : "10090", "StokAdi" : "7 Parça Kombine Anahtar Takımı", "StkGrupKodu2" : "", "...
0
votes
2answers
18 views

Create a view on a entity using criteria on another entity

I'm trying to this done : I have two entities 1) Listing Details 2) Listing Premium Settings. This entity references the first Listing Details entity. In the second Entity I have referenced entity ...
0
votes
0answers
34 views

How to change the drush default timeout of 14400?

We face a major problem for our client. To put it in context, this is a Drupal 8 with commerce that has a large number of products that come from a PIM. To be clearer, the products are not managed in ...
-3
votes
0answers
22 views

How to get webform likert element title and descriptions in submission handler [closed]

How can I get likert element title and descriptions of the questions in webform submission handler? getData() gives only question titles and there seems to be no other easy method to get descriptions ...
-2
votes
0answers
20 views

how to alter the drupal webform data before post to other url

I have a drupal webfrom with one radion button input and another one is number input and i am posting the from to outside url and my question is i need to aissign number input value to radio input if ...
0
votes
2answers
42 views

Getting a view of unique years of a date field

I'm tasked with creating a Year filter for our press releases page. We're using the Article content type, to which we've added a field called Release Date. We have the press releases as a block ...
0
votes
0answers
27 views

Exporting content translation to similar server

I have 2 instances of the same site built using Drupal. Both need to be translated, and most of the work of the translation has been done on site A and we need to take the translations from site A to ...

15 30 50 per page