All Questions

0
votes
0answers
6 views

How do I locate a specific module, block, view, or node responsible for social sharing buttons?

I am working on a site built by another developer with what I believe is deprecated code being used for the social sharing buttons. The "count" function recently stopped working. I located code in the ...
0
votes
1answer
11 views

Conditional change row colors

Say I have a content type "task" with one field "status", which is output by views. Now I want when the status is "finished", the color of that row will be red, when the status is "failed", the color ...
0
votes
0answers
15 views

How do I override a plugin? [duplicate]

I am looking for a way to override a block plugin in Drupal 8. Most of the functionality provided by this block, part of a third-party module, fulfills the requirements. However, a couple of things ...
0
votes
2answers
27 views

Print a view inside a block

In Drupal 7, I use the following code to print more than one view inside a block. <?php print views_embed_view('view_name', 'display_name'); ?> In Drupal 8, it doesn't work and it returns ...
0
votes
0answers
10 views

Changing the HTML of Webform Confirmation popup

I want to override the default HTML that loads on a webform confirmation popup but couldn't find a hook for that. Can anyone help ? Thanks, Yaron
0
votes
0answers
13 views

How can I enable a block, set the pages it is visible on, and dynamically change the contents of the block from inside my custom module?

I have a custom module in Drupal 8 called hello world. in that module I make a custom block called Hello World!, I am trying to enable the block and set it's region to "sidebar_second" from inside my ...
0
votes
1answer
8 views

Warning: A non-numeric value encountered in alpha_calculate_primary() [on hold]

I just installed Drupal Comerce, haven't done anything to it yet but it's already giving me a warning. I have no clue what it's talking about and I can't get it to not display warnings on live site. ...
-1
votes
1answer
18 views

How to make redirect in jQuery callback function? [duplicate]

When I use this $form_state->setResponse(new TrustedRedirectResponse($url, 302)); in submitForm() it works fine. But when I try to use it in jQuery callback function it doesn't redirect me. How to ...
0
votes
0answers
24 views

Print a webform submission from a printer after successfully validating and saving it [on hold]

Drupal 8.7.1 site connected via bluetooth to a printer device. I have use case where I need to print a webform submission after the user has successfully submitted the webform. I have searched too ...
-2
votes
1answer
19 views

What search tool to use for data living outside of Drupal on the external API? [on hold]

I have an external API with Doctors data. Every doctor item will have: Title Location ( geolocation address ) Opening hours Short description Area of expertise Price range On my Drupal 8 website, I ...
0
votes
0answers
13 views

get fields from a view into twig from a custom display style

So I created a custom display style following a tutorial and enabled fields to be used. I can't, however, figure out what the variables on the twig file should be to display the fields I want. MY ...
0
votes
0answers
10 views

Delete a block of all layouts

I am using Layout Builder (Drupal 8.7.1) I have a block in several Layouts. How can I programmatically remove all instances of this block and update all layouts without the message "This block is ...
0
votes
1answer
19 views

Extending a base template file such as field.html.twig renders no results?

So I have a custom content entity that has the typical attributes. Name, Author, Creation Date, ect. In the 'view' tab of this content entity, it displays said name, author, ect. When I hover over ...
-3
votes
0answers
20 views

Incorrect Drush version being installed when attempting to install site-locally

I am trying to install Drush 8.1.17 site-locally using Drupals own documentation (enter link description here), but every single time I try to install it, 9.2.6 gets installed instead. Globally, it ...
1
vote
2answers
20 views

Set a multiple field value on a form

I use this field definition in the entity "message" class. $fields['fichier'] = BaseFieldDefinition::create('file') ->setLabel(t('Fichier attaché')) ->setSetting('file_directory', '...
-2
votes
0answers
31 views

core\modules\menu_link_content\src\Plugin\Menu\MenuLinkContent.php [on hold]

I want to extend this class and add my own method. I did the below class HelpMenuLinkContent extends MenuLinkContent { public function myFunction() { //lines of code } } i wrote this ...
0
votes
1answer
4 views

Add product - price and sku field missing

When I want to add a product, the field price and SKU are missing. Running on Drupal 8.7.1 on MAMP on macOS and PHP 7.1.23 Any idea?
0
votes
0answers
10 views

Entity reference view widget in Entityform

i use Drupal 7.64, Entity reference view widget module. Entity reference view widget module perfect work in Nodes entity. But, I can't make it work with Entityform (when new form create in edit mode)...
0
votes
1answer
14 views

REST Export Views and images alternative text

I have a simple REST export View. The View format is set to "Show: Entity". The content type I am exporting contains a standard image field. My image field settings is set to "Enable Alt field" and "...
0
votes
0answers
8 views

How do I fix missing input fields in panels

The site I am working on is Drupal7 site, built of panels and pages, panelizer. Typical steps to edit, admin logs in, click on the "customize this page" button, various panels open up, click on the ...
2
votes
0answers
53 views

How can I use Html::getUniqueID in Twig

The Drupal Twig |clean_id filter calls HTML::getId, which is inferior because accessibility tests fail if your ID appears twice, for example, when the template is placed twice on a page. In the vast ...
0
votes
1answer
13 views

How to use view's relationships to pull user entity reference data?

I created 2 new user fields for the user (object/entity) on my D7 site. Using views, I can select 'content' or 'user' for querying data. When I use views to query the 'user', the 2 new fields come up ...
0
votes
0answers
18 views

Steps to make a private file system working on a fresh install?

How can i make my media files stored as private and protected? The users shoud only have access to that file if they click from the node file link, on nodes they can access to. On a fresh install,the ...
0
votes
1answer
25 views

How to reference without tagging?

My problem is a priori simple: I would like in a node to refer to the terms of taxonomy that concerns this node, but without "tag" this node, ie: without the node is referenced in the list ...
0
votes
0answers
23 views

Why is my custom twig template not being selected by Drupal?

So I have a custom module that has boilerplate template code inside it. No problem there. So I following the Drupal Docs which says to create a service.yml file and turn debug on and caches off. Done. ...
0
votes
1answer
20 views

How do I override the base URL for private files?

Why in Drupal 8 is possible to override the base_url for public files using the file_public_base_url but not for private files? There are scenenarios where Drupal is installed behind a reverse proxy. ...
1
vote
1answer
12 views

setHandler into views_pre_render OR count results in views_pre_render

I have a view that needs to have a custom views footer only if it get results. Otherwise the view needs to not be displayed I can set up a view footer by using $view->setHandler with ...
0
votes
0answers
14 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
0
votes
1answer
11 views

Drupal 8 get cart item programmatically

I need to create pdf of user's cart items with custom header & footer. I decide to create custom module in which I can get cart items details. But I have no idea about how to do this? I have tried:...
2
votes
1answer
35 views

How do I override the mail system?

In my application, all mails aren't sent via the Drupal default mail system or SMTP. We have a third-party API which sends all emails. So, whenever the plugin.manager.mail service is called, the class ...
0
votes
1answer
19 views

Migration Plus entity_lookup fails

Drupal version: 8.7.1. Used modules: Migrate Migrate Plus Migrate Tools Migrate Spreadsheet I'm trying to generate a taxonomy term if this does not already exist. the migration file: ... source: ...
0
votes
0answers
10 views

'drupal ci' command doesn't work with config split and config ignore modules, is there an easy fix?

After drupal update from 8.6.x to 8.7.1, the config_ignore module stopped working with 'drupal ci' command. I tried config split, it doesn't work also. Is there an easy way to fix it?
-4
votes
0answers
11 views

Progress bar in multiple step webform supports linking to next pages via the progress bar Drupal8? [on hold]

i want to make clickable progress bar for next steps in multiple steps webform in Drupal 8. Anybody help me how to do this?
-1
votes
0answers
9 views

How to attach autocomplete to fieldset field. i have attached code but its not working. Drupal7

function ajaxengine_form_cruiseline_reservation_node_form_alter(&$form, $form_state, $form_id) { $form['#after_build'][] = 'ajaxengine_after_build'; } function ajaxengine_after_build($...
-1
votes
0answers
18 views

Drush bam-destinations was not found

I am attempting to get an existing Drupal project up and running with MAMP, but wouldn't you know it, it doesn't work (like most things Drupal). Basically, I have a fresh instance of Drupal running, ...
0
votes
0answers
15 views

Hide Parent Terms in Taxonomy Term View Block in Twig

Trying to hide the top two terms (or first two levels) in my org listing via twig. The listing itself is a view block using the term reference tree formatter.
0
votes
1answer
24 views

How to do an EntityQuery on a custom User field?

I'm having trouble figuring out how to use the EntityQuery on custom field values. As an example I have a custom field under the User bundle that stores the country in which the user lives. There are ...
0
votes
0answers
28 views

Is the field template documentation wrong?

The core themes Stack and Bootstrap have this documentation in the field.twig.html template: * Instead of overriding the theming for all fields, you can also just override * theming for a subset of ...
-1
votes
0answers
12 views

Drupal 8 Domain Access module implementation [on hold]

I am trying to install domain access (8.x-1.0-alpha15) module on latest Drupal 8.7.1 But while installing the domain module I got the an error "The website encountered an unexpected error. Please try ...
0
votes
1answer
12 views

How do I change the Views (Entity Reference) filter via AJAX?

I have an entity form that allows an admin to select a content type (checkbox) and an autocomplete field that is tapped into a VIEWS Entity Reference (via the Reference Method). Goal: What I would ...
0
votes
0answers
11 views

Can I remove warnings/notices from the output of “drush pm:security --fields=name --format=json”?

Running a command similar to drush pm:security --fields=name --format=json gives me what I am looking for. Is there a way to remove warnings and notices from the output? I can't see anything in the ...
0
votes
0answers
7 views

Feed importer and Elysia Cron not executing feed

I am using Feeds module with importer to create nodes. I have scheduled Elysia cron to run the feeds cron and job_scheduler_cron every 15 minutes. But currently it looks like the feeds cron is not ...
0
votes
1answer
9 views

Use hook to get the domain configuration from language

We have enabled English, Spanish, and French on our site. On Regional and language >> Languages detection we selected URL for Content language detection >> Detection Method. For Part of the URL that ...
1
vote
1answer
31 views

Wrong User Image Display - Weird Twig Cache?

I'm having a weird issue with incorrect user images being displayed and it seems to be a caching issue or perhaps I am passing the user image incorrectly to my template. Problem: If I login to a ...
-1
votes
1answer
29 views

Error with Event Subscriber using getRouteName()

I have a problem with event subscriber. Here is the error: The website encountered an unexpected error. Please try again later. Error: Call to a member function getRouteName() on null in Drupal\...
0
votes
0answers
16 views

How to get referenced entity fields from another content type in single node template

I have a content type called "Resources", this is referenced from another content type called "Projects". I can get simple text fields in my single node--project.html template for example - {{...
0
votes
1answer
36 views

How do I perform outstanding entity updates after 8.7?

I have just tested the update to 8.7.1 (from 8.6.x) which includes the removal of the old automatic entity update functionality, which means drush entup no longer works. As far as I understand the ...
0
votes
1answer
26 views

Can I store media files in the private directory?

The normal behavior, described also in Give access to private files to certain role? seem to be the following. Once configured, files stored in the private directory are inaccessible via a direct ...
0
votes
0answers
21 views

Migrate scheduled content

I am in the midst of migrating a Drupal 7 site to Drupal 8 (8.7.1.). I have some content types that use Scheduler to publish/unpublish content. How can I migrate the publish/unpublish dates? I have ...
0
votes
0answers
11 views

PHP Fatal error: composer & zendframework/zend-diactoros [on hold]

As of today I'm getting a HTTP500 error and the following entry in the error.log: PHP Fatal error: require(): Failed opening required '/var/www/html/druco/vendor/composer/../zendframework/zend-...

15 30 50 per page