All Questions

0
votes
0answers
20 views

Simple Oauth oauth/debug?_format=json Internal Server error

When i try to test the ooauth/debug?_format=json endpoint through Postman i get the internal server error and error code 403 forbidden. Even though i use a valid Authorization header with Bearer and ...
0
votes
0answers
25 views

Mixing routes for Drupal and GatsbyJS

i'm planning to write an application with GatsbyJS and sourcing data from Drupal. But for some application parts i want to have access to Drupal at some routes. For example page will be reachable at ...
-3
votes
1answer
24 views

change of Public file system path [closed]

how can i change Public file system path in drupal 8 ? And can you tell more about how to increase the storage of database?
0
votes
1answer
54 views

I want to build multidimensional array at Twig

I want to build multidimensional array at Twig. In php $attributes['attributes']['class'] = array(); $attributes['attributes']['class'][] = 'innerTab'; $attributes['html'] = TRUE; Same thing ...
0
votes
0answers
25 views

Drupal Event Calendar module - Can I make the end time of an event dependent on another field?

I am using the Event Calendar module to create "music classes" for a school of music. They have three levels of classes: Beginner - each class is 30 minutes long Intermediate - each class is 40 ...
0
votes
1answer
11 views

Node Export being downloaded as a .sh file and unable to be imported

In my Drupal 7 project, I have some content of a custom content-type (page) that I need to import into another environment. When I go to this content instance, I select on Node Export, which then ...
0
votes
0answers
7 views

Is it possible to use the path alias token as file path with filefield_paths module?

I'd like to use the path alias in order to create the folder structure of the uploaded file. First of all I could not find the correct token in the list and after a while decided to create my own ...
1
vote
0answers
11 views

Need to add SKU to order confirmation email - Commerce 2

I have been able to customize the order confirmation email twig file for a client to some degree, however when it comes to adding the SKU for each item ordered I cannot find a way to have it populate. ...
0
votes
0answers
16 views

How to alter rendered and aggregated views values?

I would like to do math on counts of two aggregated fields. In views post render the final results are located under $view->style_plugin->rendered_fields[0] and they are generated by views aggregator ...
0
votes
0answers
23 views

Commerce Dunning and how to send notification to users with credit cards expiring soon

I am using Drupal Commerce with Commerce Card on File and the Commerce Recurring Framework to bill recurring payments. There is a desire to send email notifications to users stating their credit ...
0
votes
0answers
11 views

Ubercart 7x Migration to Commerce 8.x with Drush?

I've been experimenting with upgrading an Ubercart 7.x site to Commerce 8.x and I haven't had much luck so far. The migration process times out when using the migrate UI, so I've tried re-running the ...
0
votes
0answers
24 views

How can I be notified when a migration fails?

I execute migrations everyday with drush in a bash script but sometimes one migration or more fails. Other times the migration ends with 0 created, 0 updated, 0 failed and 0 ignored. I would also like ...
1
vote
0answers
17 views

Problem with text format and base64 inline images

I am using Drupal 8.6.13 text field with Full HTML text format for a field where we want to have content with inline base64 images (due to the synchronization with Gather Content). Synchronization ...
0
votes
0answers
26 views

Fatal error: Class 'DrupalDefaultEntityController' not found in comment.module

I'm trying to update the Drupal Core of a website, specifically from 7.65 to 7.67. I've followed the instructions from here. After the process, I've try to access the website without luck, because I'm ...
0
votes
0answers
21 views

Services: Updating file/image on server

I'm able do retrieve, delete an image from Drupal server using services https://example.com/entity/file/[fid] But I couldn't able to do the same for updating. I tried like follows to update the ...
-1
votes
0answers
9 views

Entity Reference Filter: Filter users custom field

I have created content type which has various fields. One of its field showing list of users in the system as an select box (option to select user). I want to filter that list of users(people) based ...
0
votes
1answer
48 views

How to get fields in StylePluginBase

i´m building a new nap view style. I get the map shown correctly, but only without the data of the view :-(. class OpenlayersViews extends StylePluginBase { /** * Whether the display allows the ...
0
votes
0answers
27 views

Rendering multiple field image in paragraph

I have field_image in my paragraph that has multiple values so img1.jpg, img2.jpg etc . I want to render it in twig but the first image needs to have different class then the rest of them . I've tried ...
0
votes
0answers
18 views

8 - Cannot get clean URL's to work in macos mojave

Trying to install Drupal 8 on my macos mojave but cannot get clean URL's to work. But failing. Here are my configs at /etc/apache2/httpd.conf: Rewrite mod and vhosts include is uncommented... ...
0
votes
0answers
21 views

Drupal7 - In Edit View adding a field, no “Configure: field” popup and field not shown in “Fields” section

In View panel, adding fields not showing up "Configure: field" and the field is not added. i.e. The red-boxed is not shown as below (see step2): Normal behavior step1: Normal behavior step2: The ...
0
votes
0answers
15 views

How to add a custom filter to a view?

I'm still fairly new to Drupal and I've set up a page based on a view. On this page I display Directory Listings from the FileBrowser module which all goes fine and the way I want. Now the tricky ...
0
votes
1answer
20 views

Covert link field as link field text format?

I have used the link field for the button. Here, I have to change one word as Italic. I am not able to change the word as Italic in the link field. I want to change the link field as link's title lik ...
0
votes
1answer
50 views

print data to twig file from custom form submit via controller

I have created a custom form, and I'm passing data to twig file from submitForm function as follows public function submitForm(array &$form, FormStateInterface $form_state) { $form_state->...
0
votes
0answers
10 views

webform menu not loading

I am having a problem with Webforms module. After installing the module, I couldn't enter the webforms menu and it displaying and error saying sqlstat[42S02] Base table not found. I haven't done ...
-1
votes
0answers
13 views

How to get exact matches on top of search results?

I'm using search api with solr for drupal 8. I've added title field to index and gave maximum boost. Problem is when I search a keyword, exact match is not at the top of the results. For example: ...
0
votes
0answers
13 views

Proper way to *define* new menu status code for a custom module

What would be the proper way to define a new menu status code inside a custom module? I'm developing a module where a user can add family members which can register for events. In the same spirit as ...
0
votes
0answers
11 views

Acess denied to files set as permanent in tmp folder

I made a module that saves custom files in the tmp folder when users add a product to the cart, and move the file to private folder when the order is submitted. If I set the file status to 0, users ...
0
votes
0answers
39 views

Caching input filter results

I'm creating an input filter that is quite expensive, as it makes a call to a remote service as part of the processing of the output. In Drupal 7, I'm pretty sure that the filtered output of an input ...
0
votes
0answers
37 views

Install in a specific PostGreSQL schema

I want to install & setup my Drupal databases in a specific schema of the PostgreSQL database. For example, let's say I have created a schema named "test_drupal" in my existing PostGreSQL database ...
0
votes
0answers
39 views

Change table_name in Content Entity

In Drupal 8 I have an entititype that I want to save to a different database i.e. not the default. I found this post on Drupal Answers, that seems to offer a solution. I'm not sure how to implement it....
0
votes
0answers
19 views

How to change or translate the strings in t() functions only for specified pages? [duplicate]

For example, "Next" contextually means either "Next page" or "Next day" in Chinese. So in a calendar view page, it should be translated into "Next day", in a list view page, it should be translated ...
0
votes
0answers
11 views

Populate a 2nd date field min date from a previous date field in webform

I have 2 date field on my webform. Both date fields have a min date set to today and a max date set to today + 2 years. When a user selects a date in the 1st date field, is it possible to set the 2nd ...
0
votes
2answers
32 views

How to get all values from a new node being created in hook_ENTITY_TYPE_presave()

Drupal 8.7.2 function mymodule_node_presave(Drupal\Core\Entity\EntityInterface $entity) { data_dump($entity->original); //is empty because its a new node, not a node being updated. // How to ...
0
votes
0answers
12 views

What is the best way to create uneven grids

I have a a 2-column grid view. They are equally sized but I thought that it would be nice to make one of them 1/3 and other 2/3 on each row. Just like in the example image. What would be the best way ...
-2
votes
1answer
40 views

Drush won't work after installing drupal 8 on remote server using composer

After installing drupal 8 on a remote server (I have SSH access) using composer I installed drush using the following command: 'composer require drush/drush'. After I type vendor/bin/drush I get the ...
0
votes
1answer
59 views

Get Current Applied Image Style Name

How do you get the currently chosen image style name from the field format display option? I can load an image with a given style with the code below, however, the style name (e.g. thumbnail) is hard-...
1
vote
1answer
31 views

How do I use Bootstrap theme's modal.jquery.ui.bridge's mapped events?

I am using a Bootstrap subtheme, and would like to trigger an event when a modal is closed. Reviewing the main theme's modal.jquery.ui.bridge.js file, I see that the bridge is intending to map jQuery ...
1
vote
1answer
92 views

<form> and <input> tags in a text field of format Full HTML are not rendered in a field based view

In latest Drupal 8, I've got a text field of format Full HTML that contains <form> and <input> tags (It's a MailChimp subscribe snippet). As long as I am editing the text in CKEditor in ...
0
votes
0answers
31 views

Programmatically get View Field rendered HTML

I need to programmatically read a field output from a View in Drupal 8. The field output has been rewritten with extra text and twig. My code: foreach($view->result as $row){ foreach ($view-&...
0
votes
0answers
17 views

Front page per language (paragraphs) [duplicate]

I have a multilingual site in Drupal 8 that needs to have a different node for front page on each language. The node alias is homepage and it needs to look clean. Ex. site.com/us/ site.com/ca-fr/ ...
0
votes
0answers
19 views

Can't select image in CKEditor in order to apply style

Not sure this is connected to Drupal, but since I'm using CKEditor within Drupal, I'm asking here first because sometimes, using a feature in Drupal seems to change behavior. In the empty body field ...
0
votes
0answers
9 views

Files not being saved in sites/default/files

I am having a problem when I upload a file in Drupal 7 through content/files and click on add file. The URL path for the file is always saved as files/ instead of sites/default/files/. In ...
-1
votes
1answer
57 views

Custom code doesn't work [closed]

i tried to add some code to my theme, following this: How do I include JavaScript on a single page in a way that is amenable to scale i created my js file in: C:\xampp\htdocs\drupal-8.7.2\themes\...
0
votes
0answers
21 views

“Warning: include_once(/var/www/website/web/core/modules/file/templates/file.field.inc): failed to open stream”

I am getting the following PHP warnings. Warning: include_once(): Failed opening '/var/www/website/web/core/modules/file/templates/file.field.inc' for inclusion (include_path='/var/www/...
0
votes
1answer
24 views

How to check if a password reset token is still valid?

Is there a way to hook into the user_pass_reset form to detect if the provided hash is valid? Currently it seems to just throw a 403 error when submitting the form if the hash has already been used to ...
-3
votes
1answer
23 views

How to use the Message Template?

I have Drupal 8 with the Message module. I created message templates using drupal 8 but I prefer to use TWIG. In Drupal 8 my code works, but when I put it in TWIG, the tokens do not work. How to ...
0
votes
0answers
27 views

JSON:API How to retrieve multiple values in a CONTAINS condition?

I'm using JSON:API module (in core since v8.7), and works well for a simple query like: Retrieve all articles with title that contains "MyKeyValue" or subtitle that contains "MyKeyValue" That, ...
0
votes
0answers
17 views

How to print contact email in the receipt email?

I've got a question regarding receipt emails. I saw the doc about customization of receipt emails espacially the available theme_hooks. I'll need to get the contact info (email) in the receipt email....
-2
votes
0answers
19 views

How to give ability for new usera to activate their accounts without admin confirmation throu links from email?

How to give ability for new users to activate their accounts without admin confirmation throu links from email? Is Drupal 8 have this ability (prefereble) or maybe some simple module I can install to ...
-2
votes
2answers
31 views

How to get all the entity details which are using specific media?

I have a image "sample.jpg" (In media library). and I used this image in multiple custom blocks of different block types. Now I need the information of all the custom blocks which are using "sample....

15 30 50 per page