All Questions

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

Scheduled unpublished content and media that is under content moderation

Let's say you have a need for the following: Content is created with content moderation, with various states. After a set amount of time, the content is deleted or archived. The user can set when ...
0
votes
0answers
15 views

How to migrate my site to a new server?

I currently have a site with Drupal 8.9 (Composer). I want to move my server. I recreated a new server and need to transfer my site to it. How can I do this ? I have prepared a roadmap but I don't ...
0
votes
0answers
5 views

How can I programatically add a shipping method to a store?

I am using Commerce with Marketplace, and am using the Shipping module. In my commerce marketplace, users become sellers via a custom form, where I create the store entity on submit. Currently, to ...
0
votes
0answers
6 views

How can I allow a filter in a view to be modified by a site admin without granting full permission to alter the view?

I have a module with a view and some other functionality. I want to give site managers the ability to change the filter on the view (this isn't an exposed filter) but not give access to change the ...
0
votes
0answers
4 views

How can I load Commerce #totals variable for the receipt theme in a custom module?

I am trying to manually output the customer's receipt on the checkout complete screen in a custom module. I have the receipt printing nicely except for the "totals" variable. My current ...
0
votes
0answers
15 views

Applying patch on core module failing

I am trying to apply patch on core module systems. But it is failing with the message "Could not apply patch! Skipping. The error was: Cannot apply patch patches/path-alias-8.9.2.patch". ...
0
votes
0answers
10 views

Failing to uninstall a Drupal module, because “The website encountered an unexpected error. Please try again later.”

It is something wrong with the Profile module I'm using together with the Commerce module and multilanguge module. I would like to uninstall all three modules and try to install them again, but it ...
0
votes
0answers
10 views

preserve node changed timestamp during term migration

I have precisely the problem described in d6_term_node migration overwrites node changed timestamps: The d6_node migration preserves the original 'changed' timestamp for nodes on migration. But, then ...
0
votes
0answers
5 views

Using Is between in Grouped filters in views

I'm trying to set up Grouped filters for Content revision: Changed in a view. I want the filter to work for Today, Yesterday, Last week, Last month, and Last year. The grouped filters makes that ...
0
votes
0answers
19 views

Pagination for Multi value Entity Reference fields

I have added an Entity Reference type (Taxonomy Term) to the User Entity. It is a multi-value field so that any number of taxonomy terms can have the reference. Now I am using the following code to ...
-2
votes
0answers
17 views

Is it possible on Drupal 8 + SimpleNews + Swiftmailer to set up a newsletter for a news site for 50,000 subscribers?

So that mails go well at least in an hour? It is highly desirable that the mails be personalized. What exactly needs to be done for this? Now it is sent only with 20 mails for the launch of the cron. ...
0
votes
1answer
16 views

Search is broken after updating search_api_solr from 8.x-2.7 to 4.1.4

My Drupal site has a search form, which connects to a Solr index. All of this was working smoothly. But then I updated drupal/search_api_solr from 8.x-2.7 to 4.1.4 (which also required me to update ...
-3
votes
0answers
16 views

How to modify the date format ( Month Year ) in Drupal 8 Custom form?

$form['reports']['date'] = [ '#title' => t('Select Month and Year'), '#type' => 'date', '#date_format' => 'M Y', //'Y-m-d', // #description' => t('i.e. 06/2016'), ...
0
votes
0answers
17 views

Views Preview Shows Results, but Browsing the Path Doesn't

My site is running Drupal 8.9.3 with "Views taxonomy term name into ID" 8.x-1.0-alpha3 and "Hierarchical Taxonomy Menu" 8.x-1.x-dev. I'm trying to create a view that shows Drupal ...
1
vote
0answers
13 views

How do I set the value of a date and time field with Behat?

I am trying to test my site with Behat. On my entity edit form, I have a Datetime field that uses the Date and time widget. I want to use the Date and time widget because I need to set the time in ...
0
votes
0answers
20 views

how to download media into drupal 9 database from a sql database

here my problem i have old blog made in laravel and my boss want me to migrate all the article to a drupal website so i create a plugin that migrate the article title and text but i have to download ...
1
vote
1answer
27 views

How to dynamically manipulate canonical entity URLs

I've got a project with a multi-user / multi-domain environment. There is one "main" portal like www.myproject.com and for every registered user with a specific custom permission ...
0
votes
0answers
6 views

Update View When Filtering By Facet

We are using Commerce 7 to sell mattresses that may or may not have size variants like Single, Double, Queen, King. We have a facet filter on size that allows us to filter mattresses that are say ...
0
votes
2answers
33 views

How to add comments to YAML webform

I would like to add comments to the Sourcecode of my webforms in YAML. # comment (without quotes). But when I save this, it automatically gets removed. 20_e_mailadres: '#type': email '#title': E-...
1
vote
0answers
26 views

Manually removing an orphaned entity type

I have been handed an older Drupal 8 site and asked to update it to run with composer. I didn't do it in the cleanest possible way but it is working. I have run into trouble updating it. I am most of ...
-1
votes
1answer
27 views

How can I change a content entity to a config entity?

I created a project using Content Entity but now I need to change this entity to Config Entity. Do you know how I can do this?
0
votes
0answers
20 views

Can I get all the possible values of a field of a content type

I've got a field on a content type that is a taxonomy reference with multiple terms. I'm trying to pull all this values from my custom module config so I can limit my module only displaying on ...
0
votes
0answers
12 views

Missing bundle entity, entity type paragraphs_type from field_instance.yml file

I'm currently trying to migrate my D7 site to D8 and one of the things migrating is field_collections to paragraphs. I have a field_collection call "field_sidebar_callouts". I want to ...
0
votes
0answers
15 views

Trying to manually print Commerce receipt in custom module but stuck on printing total/adjustments

I have a custom module that displays the Commerce receipt at the checkout complete screen. I have it all working except for the adjustments (tax, shipping, discounts) section. In my custom module I ...
1
vote
0answers
41 views

Access Denied upon order completion

in drupal commerce every time logged in as a authenticated user and can get all the way through checkout until I am redirected back to the site. redirected to this page: /checkout/15/payment/return/...
0
votes
0answers
33 views

How Can I ensure Drupal 8 Migration YAML files execute in specified Dependency Order?

Update: There is a BUG in Drupal core. I had to make some of my migration ids in REVERSE alphabetical order in order for the dependency sequence to not break. All my original files were fine.** ...
2
votes
1answer
45 views

How can I remove a theme that is no longer in core?

Drush/Drupal 8 is throwing errors because a theme is 'enabled' that is 'missing'. The theme is/was part of core (test_stable), and I'm having difficulty getting it to uninstall. I understand that the ...
0
votes
0answers
10 views

Can't update nodes / node unpublishes itself

This problem has been bugging me for some time now and I haven't been able to find this issue online anywhere else. My Drupal 7 website has a very simple photo gallery, using a custom node type called ...
1
vote
1answer
31 views

How do I retrieve a plugin block field's translated value?

I created a module that installs a block with some fields when installed. I added a schema file, and altered the blockSubmit() function so that the translation is saved in the schema. Here is my ...
-1
votes
0answers
14 views

How do I add images dynamically to a book chapter in Drupal 8?

I have build a site that has a number of different data types. Each data type is dated and has various fields including an image for that item (node). I have constructed code to create a master book ...
-1
votes
0answers
10 views

How to create a view with the results/votes of advanced poll?

There is a view that shows the votes from the poll. However I need to apply a date filter to it. I am trying to create a view with the VIEWS module but I have not been able to display the votes.
-1
votes
0answers
12 views

User connected in IDP site isn't automatically connected in the Service provider Site SAML

i'm working on an sso fonctionnality where i have too drupal 8 sites which acting as one identity provider and the other as a service provider i seted up the simplesamlphp config correctly, the ...
0
votes
1answer
28 views

How to make node edit form meta panel accordions default to closed?

When editing a node the meta panel fieldset accordions default to being open if they contain data. I understand why this has been done, but I think it makes for a very noisy and potentially confusing ...
0
votes
0answers
20 views

Redis::select() expects parameter 1 to be integer [closed]

I have been using PHP Redis for my website from long time. Yesterday I updated my site to core 8.9.2 and Redis Module to 8.x-1.4. After updating I get a PHP warning in my log: Warning: Redis::select()...
0
votes
1answer
21 views

Add relationship to node view

I recently installed the "simplenews" and "simplenews_scheduler" modules. The first module generates a view where you can see the newsletters. My idea was to create a relationship ...
0
votes
1answer
21 views

How to create content / entity via ajax on a view?

I have a view listing some content and I want to have an "Add new" button, which should load the node form via ajax (either modal or into a div). After I save the form, it should still stay ...
-2
votes
1answer
27 views

Dynamic node field based on terms in a vocabulary

I'm hoping there is a module for this, but happy to get dirty in code if need be: I have a vocabulary "Currency" which has "USD", "HKD", "GBP" as terms. On my ...
0
votes
0answers
24 views

How to use Acquia DevDesktop https properly on Windows

I am using DevDesktop 2 on Windows 10. We have enabled https, but Acquia's SSL certificate doesn't seem to be acceptable to Google Chrome (or perhaps Windows firewall?). This is causing issues with us ...
-1
votes
1answer
45 views

Get an entity reference's field values in its field template

I have an entity reference field and the template field--my-custom-entity--field-my-entity-reference.html.twig In the template I print the content. {% for item in items %} {{ item.content }} {% ...
0
votes
1answer
22 views

hook_node_access() doesn't work for anonymous users

I am new to Drupal 7, I am still unable to understand hook_node_access operation I am trying to give view access to the basic content types nodes for anonymous users but it is not working. It is still ...
0
votes
0answers
11 views

Promotion codes discount not working for existing order

I'm using Commerce 2.20.0, where there are existing orders by the end-users where they've utilized the promotional coupon code provided & the discount is working as expected. But when someone with ...
1
vote
1answer
8 views

Aegir Installation - how to get the sender email correct to allow install to pass

During the Aegir installation procedure, the sudo apt-get install -y aegir3 aegir-archive-keyring step runs through a series of installation commands that eventually try to send an email from the ...
1
vote
2answers
19 views

How to change the default selection in views filter?

Content type has two fields: Property type and bedroom. I created a view where above fields were exposed to visitors. When I visit my site, I see -Any - is the default value for the both fields. First ...
0
votes
0answers
16 views

How do I hide the title field of 'groups'?

I created a subtheme of Olivero, and I want to hide the title for group entities. I have tried different ways, such as: In the block configuration, I used the visibility settings for excluding group ...
-1
votes
0answers
23 views

Custom field widget with user entity reference doesn't work

I have created a custom field and custom field widget. The field widget has an entity_reference to a user field, which is never saved when the field is saved. I see the following error when I try to ...
0
votes
0answers
15 views

Forms states + Visibility + Paragraphs

I have two fields, Select list - field_country Entity Reference (Paragraph) - field_data (multi value) Form Display Settings - Title: Paragraph Plural title: Paragraphs Edit mode: Open Add mode: ...
1
vote
1answer
41 views

Paragraph's fields value loaded in a custom controller are in the default language instead of the current language

I made a custom controller that load a paragraph field from a node and then render some part in a template. The paragraph field field_title and field_description are translatable. The translation ...
0
votes
2answers
59 views

How can I disable the cache for a specific page or have the cache ignore query params?

I need to disable the cache for a specific page, or get the cache to ignore query params. I have tried this, but it does not disable the cache for me https://www.drupal.org/project/...
0
votes
0answers
24 views

How to set URL for image with view method properly?

Image formatter should accept image_style and url parameters. I've got image_style working but not url. function mymodule_preprocess_views_view_field(&$variables) { // ... $variables['image'] =...
-2
votes
0answers
32 views

Drush corrupts site [closed]

When using the drush command that makes a change to Drupal it is corrupting my Drupal 9 site. I have been using it steadily and think it may be a result of being updated. Any help would be GREATLY ...

15 30 50 per page
1
2 3 4 5
1663