All Questions

0
votes
0answers
11 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
17 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
1answer
11 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
60 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
14 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
24 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
26 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
25 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
22 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
14 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
16 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:...
3
votes
1answer
46 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
23 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
12 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
13 views

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

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
19 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
33 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 [closed]

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
14 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
12 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
10 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 ...
1
vote
1answer
14 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
35 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
30 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
23 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
71 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
2answers
31 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
22 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
12 views

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

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-...
0
votes
0answers
18 views

Need to alter “No Paragraph added yet. Select a Paragraph type and press the button below to add one.” message - Paragraph Module

I am using paragraph bundle and I want to alter this message with my custom text "Please click on below button to add data".
0
votes
0answers
21 views

Drupal 8 Rest API supporting social login (Twitter , Facebook, ..)

I have recently upgraded to Drupal 8 and started using it as our Back-end for mobile applications. I can utilize rest API for login, register & logout in a good way. But I am looking to extend my ...
-3
votes
0answers
22 views

How can I print node node_stats (statistics)? [closed]

How do I use Twig to print the node_stats statistics value, for example 29? I want in node.html.twig pring statistics(modules) value. use {{node_stats}} print value is '29 views'.but I just want ...
0
votes
2answers
40 views

How do I pass a value to a content type field with a custom submit please

and thank you for your patience in helping me learn I have created a content type called response (Through Drupal, not in a custom module) In the content type I have a field called ...
-3
votes
0answers
18 views

How to add return path for all Drupal 7 emails?

How to set Return-Path parameter in Drupal 7? We would need to add -f into it.
0
votes
0answers
45 views

How to distribute/share a drupal 8 project/product?

I have a site that I've built with Drupal 8, using composer and git to manage the codebase. It's a fairly simple site that includes a handful of contrib modules, a few custom views, and a custom theme....
0
votes
1answer
22 views

How to push values from views attachment to Javascript?

I have a table view with both filters and exposed filters, and attached to it there is another view that uses views_aggregator_plus to display a summary of months and different value counts. I want ...
-1
votes
0answers
22 views

Media plugin error Could not match any bundles to input:

I created my media plugin to use the core media in Drupal 8.4.9 My plugin is to allow user to embed a widget code which will display other areas on my website. On WYSIWYG editor, I click the media ...
0
votes
0answers
27 views

Prompt user to download file via AJAX form submission

I have a file that is generated when an AJAX button is clicked. I want to immediately have a file download prompt come up. The file is being generated and has the correct data in the file. I just don'...
0
votes
1answer
40 views

How to use t() function in controller?

I understand Drupal 8 ControllerBase implements StringTranslationTrait so we can use $this->t() in Controller class. But I found in Drupal 8 examples code, they setStringTranslation to use t() ...
0
votes
1answer
54 views

How to redirect to content if view have 1 result?

Views page show content. How to redirect to content page if views has only one result?
0
votes
0answers
17 views

Priority of aliases files for Drush

I have an installation with lando. On the project, we have a directory drush with an aliases file for the project. This file defines aliases with the root specific for the lando architecture. In my ...
1
vote
2answers
41 views

Change autocomplete results based users selected checkbox

I have a drupal 8 site that uses the paragraphs module. In one of the paragraph is a field that contains an autocomplete field. It is already set up to reference a small list of Content Types. For ...
0
votes
0answers
9 views

How to let Drupal Nodejs update views if create/modify node is through AJAX

The purpose to make simple todo list, where user can: Add new todo, Modify his/her existing todo, Mark his/her existing todo completed. all of the above in his/her home page (without going into ...
0
votes
0answers
32 views

redis vs memcached vs varnish

As a contractor one jumps between different installations of drupal for different clients. Often the architecture is baked in and needs to be maintained. My experience tells me caching solution used ...
0
votes
1answer
32 views

D8 Custom submit handler does not appear to be being called [closed]

Can anyone tell me why my custom handler is not being called when I save a new entity please, Im using D8.7 Thanks use Drupal\Core\Form\FormStateInterface; use Symfony\Component\HttpFoundation\...
0
votes
0answers
31 views

Images not being uploaded to defined Image Style folder on server

Drupal 7 site. For over 5 years we've had no trouble uploading images to view with a blog. This weekend we had Ningx loaded on our server. Hosting co. is certain that's not issue. Maybe it isn't. ...

15 30 50 per page