All Questions

0
votes
0answers
3 views

Update to drupal 8.7 caused paragraphs to display improperly

I am using bootstrap paragraphs (BP) as part of my project. When I updated to D8.7, the BPs that define layout (e.g. 2 column, accordion, etc.) stopped displaying. I then tried a roll back to 8.6 ...
0
votes
0answers
3 views

Comment body not displaying

I have an interesting problem where the comment body does not appear with the comment. The field wrapping is in the HTML but the content portion is always blank. This problem occurs regardless of the ...
0
votes
1answer
18 views

Entity getOwner()

In what table does an entity "foo" get its metadata stored? In Drupal 7, there are tables for all the fields for a content type and the node table had some metadata stored, but most data for a content ...
1
vote
1answer
14 views

Is the homepage considered in_active_trail?

I'm learning Drupal 8, so still very new to it. I'm working on customizing the main menu. I've been able to add Twitter Bootstrap to my custom theme. I've made a custom menu--main.html.twig file. I'...
-1
votes
0answers
11 views

Export / Import Users Drupal 8

I am loking for a way to export users from one Drupal 8 Site into another Drupal 8 site. Is it possible to do this by exporting and importing the Users tables? If so which ones? I see there are ...
-1
votes
0answers
18 views

Need to force session restart

I've created a simple site that controls sign displays and the manufacturer tells me that in order for the signs to pick up changes, I need to force a session restart. I've installed the ...
0
votes
0answers
9 views

entity_lookup for user entity type

I'm trying to link a field in my spreadsheet file to a user that is previously created with a migration from the same spreadsheet. The Backup column consists of multiple names divided by the backward ...
0
votes
0answers
6 views

Provide a field that lets editor select content types?

I have a Paragraph that when rendered, injects a View. This view is being built and constructed in a preprocess hook in the theme, with arguments injected from a field. The field just lists all the ...
-2
votes
0answers
17 views

How to move multiple nodes to another user [on hold]

Answering my own question. For example with code. $node = '30837,30845,30850'; $nodes = explode(",", $node); foreach($nodes as $nid){ $node = node_load($nid); // If you want to make sure ...
1
vote
0answers
14 views

Views callback work only once with advanced form block

this code work but the views is callback only once (reload only once), any idea to reload more than one time ? see in detail on drupal.org function modulename_form_alter (&$form, &$...
0
votes
0answers
9 views

Getting 403 Error with Slick and Flexslider

Can't seem to figure this one out! First, I tried Flexslider and then I tried Slick. I am getting the same errors (except different but corresponding files associated with each) with both. HTTP403: ...
-4
votes
1answer
27 views

Calling Drupal Form from non-Drupal 3rd Party Website

I have an existing non-Drupal 3rd party site and I am trying to submit a form request to a site written in Drupal. For some reason, the request does not process. I'm not familiar with Drupal and would ...
0
votes
0answers
16 views

Kint function not working for me at twig template

I have enabled devel module and also enabled devel kint . From configuration section (development/devel) , I select kint as Variables Dumper. I also enable twig debug mode. But {{ kint() }} not ...
-3
votes
0answers
23 views

Use twig filter to resize / crop image in template in Drupal 8

I want to use a twig filter to resize/crop images in templates, I know with that that is possible with image styles and responsive images but I don't like that approach. I would prefer something ...
0
votes
1answer
17 views

CIDRAM on Drupal 7

Has anyone installed CIDRAM (access management to block undesirable IP addresses) on Drupal 7. It requires adding a "php require" statement to a file that is executed on every attempt to access the ...
0
votes
0answers
13 views

Custom CSS for Entity Print Views

I need to print Cart form view in drupal 8 site. I have installed Entity Print & Entity Print Views. I can generate pdf successfully using tcpdf pdf file or debug version does not considering css. ...
-1
votes
0answers
12 views

I want to configure content from external API results [on hold]

There may be existing documents, but because it is not familiar with English and it is the first time to develop drupal, no information to help me has been found. What I want to implement is as ...
0
votes
0answers
18 views

LDAP Authentication without storing in Drupal

I'm new to Drupal and would like to authenticate with my LDAP server. I can connect them and I can connect with a user in my directory. However, I would like that when I log in, the user should not be ...
0
votes
0answers
17 views

form : I need to prepopulate an entity reference multi value field depending on select list

I need to prepopulate an entity refence field depending on a list selection field. If the user select liste "administrator" then ajax need to prepopulate the field with users asssociated to this list....
0
votes
2answers
22 views

Get value of programmatically (form_alter) added fields at form submit

I'm altering a node creation form using the form_alter hook in a custom module. In this particular case, I'm adding an email field which is not part of the content type structure. At the node creation,...
0
votes
0answers
23 views

Migrating media images from directory in custom module

I'm on drupal 8.7.1. Using following modules: Migrate Migrate Plus Migrate Tools Migrate Spreadsheet Media & Media Library I'm trying to import a bunch of profile images (as media images), ...
0
votes
1answer
38 views

When I going to Disable Twig template cache , Fatal error

When I going to Disable Twig template cache , Fatal error . i.e The website encountered an unexpected error. Please try again later. Error: Unsupported operand types in Drupal\Core\Template\...
0
votes
0answers
21 views

What is the (number) showing in front of terms and vocabularies in Drupal?

I am new to these staffs, so it is a little bit confusing for me. Can anyone please tell what does this number just telling us?
0
votes
0answers
9 views

One pager for a view with multiple attachments

I am making a custom results page for Search API. To achieve this, I have created a View that pulls 4 items and has a pager set. I also have 3 attachment views that display content from a different ...
2
votes
0answers
41 views

Why doesn't LinkFormatter::viewElements bubble cache metadata?

I am trying to understand how the token system in Drupal 8 interacts with the cache bubbling system and in LinkFormatter I see $link_title = \Drupal::token()->replace($item->title, [$entity->...
1
vote
1answer
17 views

Set value on a new term based on a vocabulary custom field

I want to set the value of a field of a term based on a custom field set on the vocabulary. Basically if the vocabulary promote_to_index field is checked I want to the field_index_page of the term ...
0
votes
0answers
16 views

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

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
21 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
18 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
40 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
14 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? [on hold]

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
10 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
20 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
25 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
23 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
18 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 ...
1
vote
1answer
38 views
+100

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
22 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
21 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
24 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
36 views

Extending from Plugin Class. How to make this accessible? [on hold]

I want to extend this class (core\modules\menu_link_content\src\Plugin\Menu\MenuLinkContent.php) and add my own method. I did the below class HelpMenuLinkContent extends MenuLinkContent { public ...
0
votes
1answer
6 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
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
15 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
59 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
23 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 ...

15 30 50 per page