All Questions

1
vote
1answer
14 views

How can I get the full content of a PHPUnit test truncated response?

I'm writing a Functional test (extending BrowserTestBase) for a Drupal REST resource. My resource works fine in real life, but the test (running with --verbose and --debug options) throws a server ...
0
votes
0answers
23 views

Ensuring Users Get the Most Up-to-Date PDF

I have taken over a Drupal 7 site that contains a lot of pdf forms. These forms are frequently updated. Many of these forms were uploaded to sites/default/files/userfiles and manually linked across ...
0
votes
0answers
19 views

Where is webforms template info stored in the database

I'm using webforms in Drupal 8. I have migrated an old database over but need to overwrite the correct webforms table to restore a webform template I created on a previous site. Can you tell me ...
4
votes
2answers
82 views

How can I show the user login block on the 403 page?

With D8, I have a node (content type: basic page) that I use as a custom 403 (access denied) page. I set this as the custom 403 page on: /admin/config/system/site-information. The path is /node/21, ...
1
vote
1answer
34 views

How are values passed from the database to the templating system?

I haven't quite figured out how Drupal passes the values from the database or the back-end to the theme variables in the template. Which function does it use to disperse the variables to the ...
-4
votes
0answers
20 views

How I can change drupal site UUID and its runing in docker?

My Docker file version: '3.1' services: drupal: image: drupal:8-apache ports: - 8082:80 volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes ...
-2
votes
0answers
18 views

Unable to print view result in custom template [closed]

I have created a view in drupal 8 and then I have created a custom template. where I use the 'views_get_view_result' drupal core api. but no result found. Here my code <?php $view_result = ...
-3
votes
0answers
15 views

Wildcard search not working

We have created a view which is based on the Solr index. We have provided multi-field full text exposed filter to search the terms. We are using Solr 7.4 and Drupal 7.59. We are facing problem ...
-3
votes
0answers
13 views

Show the Content based on date of birth in Views

I am working on articles to be filtered by Date of Birth. Scenario : I added a DOB date field to article content type. Now, I have to show articles as , If today is the DOB of someone from content ...
-2
votes
1answer
21 views

webform_submission_ID post blocked by CAPTCHA module

After solving reCAPTCHA and submitting the form I am getting error: The answer you entered for the CAPTCHA was not correct. Recent log message says: webform_submission_ID post blocked by CAPTCHA ...
0
votes
3answers
19 views

View listing related nodes by taxonomy term

I have a content type representing a book. Each book as a genre (SciFi, Fantasy, Thriller ...) and I would like to expose, on the page of a book some books sharing the same genre. I created a view ...
-2
votes
0answers
18 views

Can anyone please suggest any drupal contrib modules or suggest any custom hooks to implement the below password policies in drupal 8? [closed]

1.Apply a password dictionary and/or other checks to prevent users from selecting passwords that can be easily guessed. 2.Password change to be enforced or a reminder sent after 90 to 100 days, or ...
1
vote
0answers
42 views

Custom template not used for custom entity generated with Drupal Console [closed]

I have created a custom entity via drupal console, and it created template item_entity.html.twig in template folder, but the entity is being rendered in some other way because any changes in template ...
0
votes
0answers
16 views

How to token Insert nth element of Iframe?

Module used: Token Insert I have a content type with an iframe field which accepts multiple values. In my wysiwyg body field, I did a token insert. When I add this iframe field which has only one ...
-3
votes
0answers
35 views

Content Recommendation Options for Drupal 8? [closed]

It seems like there were several recommendation modules for Drupal 7 (like the recommendationAPI) but as of now none of them have been ported to D8. We're looking for a solution that can take clicks, ...
-1
votes
1answer
33 views

How to let content editors use pre-defined block-like content?

In wordpress (gutenberg), content editors can choose some kind of pre-defined blocks to their content. If I have content editors, that can create new nodes, I want them to be able to add such blocks ...
-2
votes
0answers
27 views

How can I build a Presentation Manager? [closed]

My project's structure: I'm building a Presentation Manager. A Presentation has a title, an image and Slides A Slide has a type (can either be text, image or video) We want to be able to re-order ...
1
vote
1answer
41 views

Handling directory error with submitted patch

Drupal 8.x MAC OSX + Vagrant 2.2.0 I have a patch submitted to a Drupal project module, and while trying to apply the patch locally I get this error: Checking patch src/Form/...
0
votes
1answer
17 views

Get prefix and suffix from a Number field

So here is my issue; I got a price in a Number (decimal) field in a node, I need to process this number in some ways depending on users interactions then send it back (via an ajax request) as an ...
-4
votes
1answer
33 views

Find different node in hook_node_form_alter [closed]

In the function hook_node_form_alter(), i still want to get an other node, because i want to set a field value programmatically in dependencies on the value of an other node (the parent node). But i ...
1
vote
0answers
36 views

How can I add a property definition to an existing field?

I have a file reference field FileItem that has a display and description property but I want to add an extra one. I was hoping I could just override the default widget but I can't use this to store ...
-2
votes
1answer
43 views

Should configuration synchronization be used only between cloned sites?

Can it be used to get configuration from one site to another site which is not a clone. eg: SiteX is installed using composer create-project drupal-composer/drupal-project:8.x-dev SiteX and ...
0
votes
0answers
14 views

How can I change the directory path to my Sites in Aquia Dev Desktop?

Hello DevDesktop Community, I have a problem with the DevDesktop App. I migrated my Sites folder and my DevDesktop folder from an older MacBook, did an update to DevDesktop 2 and everything works so ...
0
votes
0answers
32 views

Form action as controller method?

I'm trying to fix a form that was created using a twig template. The form was not working because there was no action, nor was the form created using FormStateInterface. It's just a block that is ...
-2
votes
0answers
22 views

Installation from UI repeats unwillingly

Configuration: Docker OS: debian 9 || PHP: 7.2-fpm || Apache: 2.4 Issue: When going through the GUI to install Drupal, it seems to loop initially. I first get the "select language" dialog box, ...
-4
votes
0answers
25 views

Table not showing in database [on hold]

In a custom module in module.install I'm creating two tables in the hook_schema hook. I've uninstalled and reinstalled the module and cleared the cache but the tables still don't appear in the ...
0
votes
1answer
33 views

How to check if view result is empty Twig

To check the field I use the following code: {% if content.field_name|render is empty %} How to check on node.twig if {{ my_cool_view }} result is empty? Is this generally possible in Drupal 8? ...
-3
votes
0answers
14 views

how only users from the drupal 5 site can migrate to drupal 8 site [closed]

I want to migrate only users table from drupal 5 to drupal 8 means i want that the same users would be able to login from drupal8 site with same id and password how it will be possible. Please suggest....
-1
votes
1answer
16 views

User role update report

Could you let me know how to check how many users converted from one role to another for a specific period of time (for example how many changed roles from user to superuser from 01/09/2017 to 01/02/...
0
votes
2answers
23 views

Show View When Empty and Hide View When Not Empty!

I have a webform as a block which sets a value connected to the logged in user. I want to display the webform if it hasn't been filled in yet by authenticated users, and hide it when it has (based on ...
0
votes
1answer
23 views

How do I create a folder structure inside a view

I have created a view to get the all images that I have used in the website. But it returns as a bulk list. But I have saved the images according to a folder structure. How do I get the images ...
1
vote
2answers
40 views

Why does drupal use .yml and not officially recommended .yaml

Per yaml page https://yaml.org/faq.html they recommend .yaml as file extension but I see drupal uses almost exclusively .yml, how so? And does adding .yaml to file extension even work for drupal 8 or ...
0
votes
1answer
21 views

Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create

Basicly I want to migrate content from one drupal8 instance to another. they are mostly identical with some small changes. first step is to migrate the content type via drush gen module module and ...
0
votes
0answers
30 views

How to upload a file to drupal using D8 Controller?

I am not using drupal as front end. Instead I am using drupal as backend. I want to upload a file into drupal files folder. Normal upload.php which we use is giving me an undefined $file error. I am ...
0
votes
0answers
9 views

Akamai module showing Drupal\akamai\CcuClientInterface [closed]

Iam working with drupal7 Akamai module version 7.x-3.0-alpha1. I cannot access the Akamai configuration from backend. Showing an error : Error: Class 'Drupal\akamai\CcuClientInterface' not found in ...
0
votes
0answers
10 views

What does “Field values for name must use an array structure” mean?

I am try to login via the REST API; curl --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "X-CSRF: dx3hhNKGorFI_2alL_Zqde2ZFDpefAll2JZd8kNisTA" \ ...
-2
votes
0answers
24 views

Run commands in multiple sites

I made a multi-site installation. How can I run Drupal console commands like drupal site:mode dev for a specific site, instead of the default one? I tried to run the command in the site folder, as ...
-2
votes
0answers
12 views

Commerce Kickstart 2 is not ready for php 7.2? [duplicate]

I tried to install CK2 on PHP7.2 Debian 9 installation and it looks like it is not ready for 7.2 PHP? I found this warrings and errors during the installation proces? DO you have any workarounds for ...
0
votes
0answers
6 views

Edit Shipping Address on existing order

Is there any way to edit the shipping address on an existing order? I only see the billing address in the edit screen.
-2
votes
0answers
14 views

How to use Feeds to read in users?

I want to read in a CSV file from an older database of customers into my drupal site. Usually when I read in a CSV file I create a content type to hold the information, for example 'Issues'. When I ...
-1
votes
0answers
16 views

Contextual filter in Block

I have created a content type product-review and added a field that is a reference field of taxonomy. Created a view to display all product-review contents. Created a block in the same view to display ...
-2
votes
0answers
23 views

Updating content through webservice [on hold]

I've created a custom content type that has different field types (date, numbers, entity reference, image) and I need to, once it has content published, update those content fields through a web ...
-1
votes
0answers
18 views

How can I change the css attributes of the sub-item of theme template in my custom module?

I use the system built-in block of "User account menu" in my page. The twig file is core/themes/classy/templates/navigation/menu.html, and this is the html output: <ul class="menu"> <li ...
0
votes
0answers
15 views

Error: Cron has not run recently. But it did!

I have a site (hosted on Acquia) which always return an error about cron not running on the Status report page, but it actually runs regularly and it does all the task attached to it. Cron is running ...
0
votes
0answers
14 views

Entity Refernce View Widget conflicting with Time Field?

am trying to setup a content type that has the need for both an Entity Reference Views Widget and also needs fields using Time Field (https://www.drupal.org/project/timefield), however the ERVW does ...
0
votes
0answers
17 views

Custom Views Field Formatter for List - show all values and indicate selected/not selected

new Drupal user here so please forgive any rookie assumptions or questions I may have. I need to get all values (even those not selected) from a select list field in a view. I'm trying to create a ...
0
votes
1answer
16 views

Change input value on click when there is more than one paragraph

There are two fields on my paragraph. A number field A text field I want to change the value of the text field when I click on the number field. Here's my script so far which is only good on ...
-3
votes
0answers
31 views

Defective occurrences [closed]

After running manual test on the webform's established throughout various pages, (e.g. home page, contact page), I have acquired the following occurrences: When entering data into the message text ...
-5
votes
0answers
21 views

How to use image in CSS-file of custom theme [closed]

I have a custom theme. The folder structure is like this: web |-- themes |-- custom |-- mytheme |-- css |-- js ...
0
votes
1answer
31 views

Get Plugin Definition methods using dependency injection

It is my first time defining a custom Plugin Type. I think that this might be a comming thing in Drupal but I was not able to find any documentation anywhere. I want to get Plugin definition methods ...

15 30 50 per page