All Questions

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

Updated to 8.9.1 getting 'content_moderation_state plugin does not exist' message

Updated a drupal project to 8.9.1, all seemed to go smoothly. After i run drush updb and I got the following message. Anyone know what's this about and how to resolve? All other update were run ...
0
votes
1answer
50 views

Why doesn't my date get rendered?

In Drupal 8, I have a Flag entity with a date field attached. My code looks like this: function MYMODULE_flagging_presave(FlaggingInterface $flagging) { if ($score == 0 || $score == 1) { $...
0
votes
0answers
17 views

How to exclude nodes in one taxonomy based view from another taxonomy based view?

I have a taxonomy term view that uses a contextual filter for "Has taxonomy term id" and displays nodes with the term. I have a view attachment set up that uses the same contextual filter ...
0
votes
1answer
15 views

Remove one of the two “Apply to selected items” submit buttons with Node Bulk Operations

If you make a view and add the Node operations bulk form, two "Apply to selected items" boxes are automatically generated like this: How do I get rid of one of these? I turned on twig ...
-3
votes
0answers
19 views

a way to automatically add the captcha field to all webforms

Is there a way to add the captcha field to ALL webforms - created and new?
1
vote
1answer
30 views

Workaround for missing migrate-deregister command in Drush 10.3.1?

I'm trying to migrate and upgrade a site from Drupal 7 to Drupal 8 (version 8.9.1). The migration cannot be accomplished with the UI, since I need to make some changes to the content types and ...
0
votes
0answers
14 views

How to use a glossary exposed filter in search api views?

I have a search api views. I want to display a glossary filter on title. I have searched many articles to implement it using a contextual filters. But the options of context filters can be seen in a ...
0
votes
1answer
15 views

Get the current ProductVariation from the formElement of a custom widget in the “Add to cart” form

I've a custom field in my Order Item, i need the value of a field of my ProductVariation in the widget of my custom field. Let's say that my Variation has a "remote ID" field, when i select ...
0
votes
2answers
21 views

How to determine the route for the add node page of a custom entity type?

I have a node type question that I want users to be able to create rapidly. So, after adding a question, I want them to be redirected to /node/add/question to immediately do it again. This is my code ...
0
votes
0answers
41 views

Bigpipe after load event

When I enable the bigpipe module most of the blocks disappear, since I use a Vue layer. I've tried the following codes but none of them have worked for me: var charging_blocs = $('[data-big-pipe-...
0
votes
0answers
10 views

Making authenticated service call with dart (flutter)

I am attempting to make an authenticated call to Drupal 7 using services 3.7 in dart (Flutter framework) I can retrieve a token and login but when I make a call to; [ENDPOINT]/user/[USER_ID] I get ...
0
votes
0answers
30 views

Own permissions for paragraphs and ECK entities

I have come quite far in my Drupal 8 development without needing to write much custom php code. However, I am using paragraphs and eck entities as referenced entities in content types. For users to be ...
0
votes
1answer
30 views

Tokens missing in Webform Emails after upgrading

Currently running Drupal 7.69 / PHP 7.3 (+ CiviCRM) I have recently updated some Modules : Webform, Views Bulk Operations, i18n, and Content Access. Since then, my Webform Emails do not show the ...
0
votes
0answers
27 views

Is there a way I can access the user profile picture filename?

I want to create a view in the Drupal 7, where I can show the User Profile picture name (the original which user uploaded) and the path its saved.
0
votes
0answers
18 views

How can I ensure that our RSS feed contains all changed nodes?

I am far from an expert in this area so excuse me if I do not use the correct terminology. I want to create an RSS feed containing nodes that do not get updated directly. They use D3.js javascript ...
0
votes
0answers
17 views

Theme a subscriber field in Simplenews issues

I need to address my subscribers in a more personal way. Thus I added fields for Mr./Mrs., firstname, lastname to the subscription block, and data gets collected nicely. However, I can't see how to ...
0
votes
0answers
43 views

Display the fields of the current taxonomy with an exposed form

I'm using the Taxonomy term view. I expose the "Has taxonomy term" filter to my users in a block. I want to display the title and the fields of the current taxonomy even when a term has been ...
0
votes
0answers
23 views

How can I set a value of a hidden webform field in the backend?

I have a field A that is hidden by conditional logic and only appears if the user selects a specific radio button. But when I want to edit/set a value for the field A of a submission the conditional ...
1
vote
1answer
19 views

How to filter nodes on a view based on user role shared by both nodes authors and current user?

Working on Drupal 8.9.1 I need to list nodes with Views and filter them based on user role shared by both nodes authors and current user. If I add a relationship to content author and a contextual ...
0
votes
2answers
26 views

How can I export and then import taxonomy terms?

So I built my own custom entity type (we'll call it notes). And on my notes I have fields that use taxonomy terms, however when it comes to exporting the data out on individual fields, it shows the ...
0
votes
0answers
37 views

How to create a term reference field programmatically

I need to add a taxonomy reference field to a node bundle, programmatically. I found a couple examples here, but one actually is incorrectly titled and is about creating a from field for it, and the ...
0
votes
1answer
24 views

Change sort order for view when exposed filter text field submitted

I have a view that by default is ordered by date. It has several exposed filters one of which is for filtering by text (we use it as a search field). I'd like the view sort to change to Relevance when ...
0
votes
1answer
50 views

“recommended-project” installs drupal into the /web subdirectory, but hosting solution directs traffic to webroot

Per https://www.drupal.org/node/3082474 the preferred document template, drupal/recommended-project, uses a "relocated document root" for security purposes. HOWEVER, many cPanel driven ...
0
votes
1answer
58 views

Why do I get “Nothing to install or update” when I update to latest core version?

Under /admin/modules/update, Drupal core is listed as requiring update from 8.8.8 to 8.9.1. I have started my Drupal installation using the drupal/recommended-project project template and I used ...
0
votes
1answer
32 views

Override remove entities link on module uninstall page

When a module needs to be uninstalled, Drupal adds links indicating there is content associated with the module which should be deleted first and provides a link Remove module_name entities. This ...
0
votes
0answers
45 views

Entity Error While Running update.php from 8.6.14 to 8.9.1?

I have been trying to update the core from 8.6.14 to 8.9.1. I am facing the below error while running drush updb comments > [error] Field storage definition for 'revision_id' could not be > ...
0
votes
0answers
28 views

Changing HTML5 element to military time in Webform

Would anyone be able to suggest a way that I can change the current AM/PM default 12-hour HTML5 time into 24-hour military time when using the Date/time element in Webform? When I change it to 'Time ...
0
votes
1answer
13 views

Dynamically add destination fields to migration - importing data when fields on destination entity are not know

I am trying to import content from JSON from an API call. This API call has different source data depending on what the call is. For my migration from this JSON, there are set fields that I have coded ...
1
vote
1answer
25 views

Override page.html.twig with custom module template

I want to override the page.html.twig template from a custom module. I know how to create a suggestion, but I would like it to find the template file in my custom module. function ...
0
votes
0answers
22 views

Speeding up Search API DB search?

I'm using Search API with it's build in Database search, and while the results are much better than the default Drupal search, the speed is quite slow. I'm seeing 10-15 seconds to get the results page ...
0
votes
1answer
35 views

LogicException : The controller must return a response (success ! given) [duplicate]

i have a service that return for me true in the node (article) successfully create and false if something wrong , but in the controller i am getting this error 'LogicException : The controller must ...
0
votes
0answers
16 views

Displaying image of type BLOB format stored in external database in Drupal 8 [duplicate]

I have created external database on localhost with image stored in one of the columns in BLOB format. Then I interfaced this external database using View Database Connector, created VIEW. I could ...
-3
votes
0answers
27 views

ERPAL Stripe payments not showing up

I've been given a Drupal 7.x ERPAL (https://www.drupal.org/project/erpal_platform) project to maintain and I'm attempting to add online Stripe payments using Commerce Stripe (); it may also be worth ...
0
votes
1answer
50 views

Translate path controller

I have the following path defined in my routing.yml: path: '/department/{department_node}/qualifications/{qualification_id}' I need to translate that route into other languages, for example into ...
0
votes
1answer
28 views

How to add a translation to an existing node/entity using REST?

I have a headless Drupal 8 and want to create a translation for an existing NODE using a POST request but cannot figure how to. I know how to create, edit and delete a node but am unsure on how to add ...
0
votes
0answers
19 views

EntityQuery get contents which were not modified [duplicate]

I'm writing a very basic query to get the count of contents which were not modified. The logic I'm applying here is simple too, just check if created = changed The SQL query is pretty straightforward ...
0
votes
1answer
57 views

how to configure drupal settings to be available to visualize the available variables?

how must drupal local settings be configured to display available variables using IDEs or other tools ? I guess this is xdebug and phpstorm but i don't know how to configure it if i don't have full ...
0
votes
1answer
19 views

Kernel tests: Url toString with language option

In a Kernel test I need to test the result of an url object per language. But the test doesn't consider the language settings. Example: public function register(ContainerBuilder $container) { ...
-2
votes
0answers
19 views

Clear cache message appears at different location

I have Drupal 7 site. When anyone clear cache using "Flush All Caches" system displays message "Every cache cleared." at top of page. But sometimes message get displayed bottom of ...
0
votes
2answers
29 views

How do I fix these requirement conflicts?

While updating through composer, I am getting an error from the Webform module. Drupal version 8.9.1 updated. How do I resolve this error? Problem 1 - drupal/webform_node 5.15.0 requires drupal/...
0
votes
1answer
39 views

How can I render more than one field value in the controller?

in my case i have a controller that it send for me the title , to the view , but i want to send the tittle and the body of the article both , i have tried to send them from the controller but it doesn'...
-1
votes
1answer
34 views

Is there a way to create a list of Vocabulary (Replicate this page: /admin/structure/taxonomy)

I have created a custom layout and in that i want to show the content of this page -> /admin/structure/taxonomy. Please suggest if there is any way out. Thanks
0
votes
1answer
18 views

In the settings for payments, what is the meaning of “Test transactions in a live account”?

What actually happens if I complete a transaction with the payments setting on "Test transactions in a live account"? The only documentation I see is language like "Under Transaction ...
1
vote
1answer
39 views

Custom POST request [duplicate]

I am very new to Drupal. My project requires me to create a custom module. I am working with Headless Drupal and I want to make a POST request. I cannot pass the POSTMAN Body to my Request argument in ...
0
votes
1answer
42 views

How do I display an array of entities from a controller?

I am new on Drupal 8 , so i have created a service class which return a list of data, 'articles' (node entities), and I call this service class inside a controller, but no data showing up : My ...
1
vote
0answers
35 views

How to validate a modal form?

I have a custom module which adds a button to a node form. The button opens another node form in a modal and when submitted, it takes the entity created in the modal and fills in an entity ref field ...
-1
votes
0answers
52 views

How do I get all articles from the database? [duplicate]

i am new on Drupal 8 ,in my case i want to get all articles from database filtered by name i have done dome code but it doesn't work for me can anyone help me please ? public function getArticles(){ ...
0
votes
0answers
32 views

How can i set an error message in the right place?

Using Webform with custom template, and this code. I have code below for validation and validation errors, and it works fine. But errors always appear in wrong place. I think the problem is with $...
0
votes
1answer
47 views

Display an image from an external database

I created new image database on localhost (other than Drupal original database) that has images in one column. Then I installed the Views Database Connector module; I could integrate it with Drupal to ...
2
votes
4answers
168 views

How can I change the front-page title when front page is not /node?

I changed the site's front page from /node to another page. However, now the title of the front page is page name | site name. To clear up any confusion, by "title," I mean the phrase ...

15 30 50 per page