Questions tagged [8]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
-1
votes
0answers
17 views

How do I add translations to a site?

My site supports 10 languages and English. I am trying to translate the names of the USA states and the Canada provinces. On https://localize.drupal.org/, I can only find the translations for the ...
0
votes
0answers
41 views

Create cookie after download file

I want to create a cookie after a file download. This is an extension on the existing module: https://www.drupal.org/project/file_utility Each time you click on a download, a popup opens. For me it ...
0
votes
0answers
22 views

How to override images in node's content?

Our site is having issues because of the high resolution images inside our articles. We already have thousands of articles so editing each of it is not optimal. I'm kinda new in drupal and I just need ...
0
votes
0answers
12 views

Custom entity type form default value is not set

I created a custom entity, using Drupal Console, and started adding fields to the Entity Type form (Not the entity form) as I need custom configurations to be used for each bundle of the entity. All ...
0
votes
0answers
28 views

Get domain from a URL field

I have a link field in a content type, field_source. I created a computed field (field_source_domain) in the same content type, which should contain the domain for the link in field_source. I tried ...
0
votes
1answer
26 views

How do I execute code when a module is installed or uninstalled?

Currently, I manually have to add terms one by one every time a module gets installed, and that's not efficient. I'm writing a simple module that needs to automatically install 2 terms every time the ...
0
votes
1answer
10 views

How to map Address field module sub fields (City, State, etc.) to specific (individual) fields in Salesforce?

Address module: https://www.drupal.org/project/address Usually Salesforce mapping doesn't allow to add Address module subfields in the mapping.
1
vote
0answers
23 views

When I clear cache, my menu ordering seems to go out of order

When I clear cache, especially on high traffic times, my menu seems to go out of ordering. Usually I don't see any log messages except for one time: Message Drupal\Core\Database\...
0
votes
0answers
18 views

How to optimize the Glyphicons font with font-display: swap?

I want to optimize the loading of the Glyphicons font for the Google PageSpeed Insights tool. I need to apply the CSS code below : font-display: swap Here is the location of my font : https://...
0
votes
1answer
30 views

Control Visibility of Paragraph Without Fields

I'm preprocessing a paragraph to add a custom form but I'm having trouble with the visibility. I don't need any fields on this paragraph. If I just add the form to the paragraph the whole paragraph ...
2
votes
1answer
48 views

Drupal in sub directory, still not clear

My drupal project is in directory /var/www/MY_ORGANIZATION/MY_PROJECT/current, and apache2 is configured to point the web subdirectory of the above location. When I access the site, it is of course ...
0
votes
0answers
26 views

Can I set form field disabled in Controller?

I can make form field disabled with hook_form_alter. But can I somehow set form field disabled in Controller? namespace Drupal\mymodule\Controller; use Drupal\Core\Controller\...
1
vote
2answers
54 views

How to change Taxonomy admin page title?

I simply need to change the title on the (Drupal 8.8.4) administrative page which lists the existing vocabularies. As far as I know/read, the routing.yml should be modified, shouldn't it? (Is only ...
0
votes
0answers
13 views

How can I populate and entity reference field/videos that have been previously migrated to the media library?

Upgrading from D7 to D8, we previously migrated D7 youtube and vimeo videos to the Drupal 8.8 core media library. We now are attempting to migrate the Video nodes and their media library video fields ...
1
vote
1answer
18 views

Views alter changes next row instead of current one

I have a view that is showing event content types. Users can apply for these events. I am using a hook to alter the 'view applicants' so I can show how many applications already excist. The ...
0
votes
0answers
23 views

High_contrast error after 8.4.4

After the 8.8.4 update I am getting the following error when I try to clear caches: Circular reference detected for service "theme_handler", path: "twig -> twig.loader.filesystem -> theme_handler ->...
0
votes
0answers
9 views

Views Data Export - Exporting a Referenced Media Item's URL

I need to create an Export to CSV from a series of pieces of content. Each piece of content uses a media field that I am trying to reference. The rest of the fields export fine, but I am unable to ...
0
votes
1answer
20 views

Filter nodes by today's date

Following what described in Views filter criteria date field is greater than current date, I have used operator >= today with some success. I would like to create "future" nodes and they should be ...
-2
votes
0answers
13 views

How can I serach in “custom block” using Search Api? [closed]

I cannot search in custom block body. I'm using Search api in Drupal 8.4.4. when I serach for word in custom block , the search return 0 results. I don't know what should I do.
-3
votes
0answers
22 views

Entity type does not exist [closed]

I am not able to solve this error and have been trying for days now. Please help? Drupal\Component\Plugin\Exception\PluginNotFoundException: The "brick" entity type does not exist. in Drupal\Core\...
0
votes
1answer
36 views

How to restrict access to view a block for a certain role?

I have some custom roles such as Premium Membership and I don't want to allow access to this category. The authenticated role is included to Premium Membership or Moderator users because every ...
1
vote
1answer
32 views

Date picker libraries are missing in specific page

I am adding jquery date picker feature using date field in profile edit page it is working fine . But when i am adding same jquery datepicker in custom module, datepicker function is not working. ...
0
votes
1answer
17 views

How do I programmatically “place” an order?

When making a payment through the Commerce admin interface; the Orders do not get completed. I can see a Place Order button when viewing a cart Order; which seems to do the trick. I need to do this in ...
-3
votes
1answer
137 views

How to implement markdown tables in Drupal? [closed]

In my GitHub account, I have this markdown file which is a table of at least two columns in which the first column is of a base language and the second (or later) is of a new language to which I ...
0
votes
0answers
16 views

unknown Ajax call on custom views_exposed_filters while changing dropdown list

I have two exposed filters as select fields (County and District) using Hook_form_ID_alter. I'd like to alter the #options of District base on the County I selected to display related options. But ...
0
votes
0answers
32 views

How can I limit access to the text format drop down in a paragraph? [duplicate]

I'm trying to limit the access for users to change the value of text format dropdown but I can't seem to find the correct dropdown to alter. Here's what I have so far but it seems to disable access to ...
0
votes
0answers
36 views

I cannot configure the site during installation

I have installed MAMP and Drupal 8 into my windows 10 machine. I can successfully setup database and installed modules but while setting up site, i am getting below error. Call to a member ...
0
votes
1answer
33 views

Pre-populate an entity reference field (media image) when creating a node

I am trying to open a node creation form (for example, /node/add/article) and to have an Entity Reference field pre-populated. My field (field_image) is an Entity Reference to a Media of type Image ...
0
votes
0answers
32 views

Is a block render array built with EntityViewBuilderInterface::view supposed to render full block template or only inner fields?

After rendering custom blocks in templates, I got this js error: Quick Edit could not associate the rendered entity field markup. What I've done so far : In order to render repeatedly custom blocks ...
-4
votes
0answers
18 views

How test Drupal contrib module with php 7.3 [closed]

I have set of Contrib module , we want to do check compatibility with PHP 7.3 without installing site is their third party link where I can check deprecated function , etc. Thanks Nishant
-4
votes
0answers
32 views

How to implement in drupal custom module [closed]

I am very new to drupal development. I want to create a Profile Page Which needs to show basic information as FirstName Last Name Email (Edit) John Michael ...
0
votes
0answers
26 views

Getting site ID from module (vs theme)

I have the following code in my custom theme that works well and allows me to test against the multisite_id in my twig files: function mytheme_preprocess_page(&$variables) { $site_path = \...
0
votes
1answer
17 views

Token Filter module to work on Menu URL and Title

menu_token module is working fine to achieve the purpose. Does the module token_filter has this functionality? I can use tokens in wysiwyg using token_filter but cannot make it working for menu title ...
1
vote
0answers
18 views

How to delete content entity type programmatically on uninstall?

I am trying to delete a configuration from a module in hook_uninstall. My module creates a content type bundle which has to be deleted. I tried to use an approach described here: How to delete a ...
0
votes
0answers
11 views

Moved Site Files and Set Up Domain/Apache, Can't Access Login Page

I had a Drupal 8.4 site working fine on my Digital Ocean server, accessed at http://serveripaddress/sitename/ - the site was in maintenance mode. I then set up my domain name on Google Domains, ...
0
votes
0answers
25 views

Paragraph type default value for old content

I created a new paragraph type called Ad and I want to set a default value for already existing articles. At the moment, I am obliged to go to edit each already existing article and to save it ...
-2
votes
0answers
16 views

How to use uploaded pdf file name as a pdf title?

I am using Drupal 8. In a content type I added a file field with .pdf extension.When I am uploading a .pdf file sometimes its take automatic title from pdf, and sometime its use filename as a title.. ...
0
votes
1answer
37 views

Images with applied styles are not being displayed

I have checked every single solution on the internet with no avail. On the same server and using the same Drupal version 8.8.4, I have two completely separated sites. Site A is working as expected ...
0
votes
1answer
35 views

How can I set form values with Ajax?

I want to set the value of a textfield based upon the selection of a field above. You can choose a template and the textfield would have it as a value. This is the select field used to select the ...
0
votes
1answer
13 views

How can I render an image stocked in a custom module with an image style?

I'am learning Drupal 8, and I would like create a custom module who create a block to add share button. The link of this button should be an image who stocked in my custom module. I would like use an ...
-2
votes
0answers
13 views

Use same machine-name from a deleted role/field

I've a big problem and i've searched the Internet with no success. So, I'm trying to implement an Simple SAML Login in Drupal 8 and I must create roles with a unique machine-name that de Identity ...
0
votes
0answers
26 views
+50

How to sort product attribute values in “Add to cart” form

Given a commerce product with variations, how can I order the values within a variation attribute in the "Add to cart" form on the product page? Steps so far: In /admin/commerce/config/product-types/...
0
votes
0answers
31 views

How to call rest api in Drupal8 After form submit

I created one internal api call as '/api/v1/user/promotional-emails' this api calls some external apis and we are updating data there. In postman api is working fine. Now i created a user form as '/...
-2
votes
0answers
58 views

Why, the references to the entities do not disappear?

I have a site with Drupal 8.8.4 I created a type of paragraph with an "Entity reference" field which refers to the products and a "Date range" field : I created a type of store with "Entity ...
0
votes
1answer
22 views

Form Select not rendering as a dropdown

I'm building a form that contains a select but it's not rendering as a dropdown. It's rendering with a scrollbar and a dropdown down arrow $form['my_select'] = [ '#type' => 'select', '#...
0
votes
0answers
12 views

Translations page select all

On a node translations page, for example, /node/1/translations, there is a select all checkbox. Is there a need for this checkbox? I attached a screenshot so you can see what I'm seeing. I looked at ...
0
votes
1answer
25 views

What Commcerce event is fired when a payment is made?

There seem to be a few bugs in Commerce (8.x-2.17) related to admins making payments against a Cart. I am trying to fix some of these in my own custom module (rather than wait for people to agree ...
0
votes
0answers
18 views

Make custom POST REST Resource available on OpenApi

Body section in Custom Rest Post Resource is not shown I've created a custom resource with drupal generate:plugin:rest:resource and the result is <?php namespace Drupal\baxter_rest\Plugin\rest\...
0
votes
0answers
14 views

Confilct with 2 custom authentication providers for REST

I need a custom authentication provider using JWT library for authenticate some REST, but in this Drupal other people using other custom authentication similar to my provider. The problem: If i check ...
0
votes
1answer
22 views

How to add password reset link to user page?

Is there an easy way to add a password reset button to the user page in drupal 8? For user management I need the admin to be able to send password recovery link to users AFTER the user account is ...

1
2 3 4 5
284