All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

UTF-8 encoding when creating nodes (from mails)

I'm making a customized version of the Mailhandler module, which has a node creation function: protected function createNode(MimeMessageInterface $message, DefaultAnalyzerResult $result) { $node =...
-2
votes
0answers
11 views

Paragraph ordering

Drupal 8 (possibly be Drupal 9 be completion of project) I have a set of data that will be in paragraphs, simple date & text fields. These need to be ordered in groups which do not have to ...
-1
votes
0answers
18 views

Drupal 8 Calendar / datepicker popup not working on safari

$form['date']['air_date'] = array ( '#type' => 'date', '#title' => t('Air Date:'), '#required' => TRUE, '#default_value' => !empty($arr['air_date']) ? $arr['air_date'] : '', ); ...
-2
votes
0answers
12 views

facing problem files are not downloading on android mobiles

i am using drupal7 for my website. also i have created web view android and IOS app for my website. files are downloading properly on laptop, pc, and IOS app. but on android mobile files are not ...
0
votes
0answers
16 views

Show rendered node in jQuery modal through JSON

Whenever a link has a specific class I want to show it as a jQuery modal. I have added the neccesarry data attributes to the link in order to be able to use it as a modal. I have also created a route ...
0
votes
0answers
6 views

Feeds: How to import content from multiple xml files

I have around 100 xml files. Each xml file contains a single item. I have created a feeds importer which is working fine for single xml file. But I don't know if feeds can work with multiple xml ...
0
votes
0answers
13 views

Maestro Module with REST API

Developing a headless Drupal application. I am using maestro module in Drupal. I need to expose and invoke tasks(in maestro module) through REST API. Each task has handler(execute button) which should ...
0
votes
0answers
9 views

Views exposed date filter range format

I have a view with an exposed filter for a date range. I use jquery ui datepicker to select dates. It works good and I can select dates in spanish format (dd/mm/yyyy). But when I apply the filter, It ...
-2
votes
0answers
9 views

Contextual filter: Content: Nid issue

I trying to make a views of my new products using contextual filter :Content: Nid. In content nid I opted provide default value and type:Fixed value. On Fixed value field only 27 values are added ...
0
votes
0answers
12 views

Unset cell item if field is true on a view page

I have a Views Table Page in Drupal 8 that displays node titles. On the node, there's a checkbox field that when checked needs indicate to the Views Table Page that title is not to display. I ...
-2
votes
1answer
15 views

How to add file to root in multisite installation?

I have a multisite setup. public html - Sites - - All - - site1.com - - site2.com etc. I need to .txt files to the root of each website such as site1.com/ads.txt or site2.com/robots.txt If I ...
-2
votes
0answers
28 views

How can I change the taxonomy term title?

Simple as that. I want to change the H1 tag from taxonomy views to something like "Articles from %term" to make it more user friendly and not redundant (breadcrumbs shows the term alone). I couldn't ...
0
votes
0answers
16 views

Can't Install search_api_solr and search_api

I'm trying to install search-api-solr and search-api. I try first using composer and when I check composer.json they listed in the file. but drupal installation page not affected so I end to install ...
1
vote
2answers
13 views

Query fieldCondition for custom content type

I am attempting to query a custom content type called players (machine name) in a Drupal 7 module and it seemed to be working fine up until an hour ago. Nothing has changed on my side but now the '...
-2
votes
0answers
11 views

Anyone have examples of using Drupal 8 and selling nodes (Ads in this case) with e-commerce? [on hold]

I'd like to be able to allow customers to purchase ad space on our website, upload an image, and after review by the administrator, allow it to be published. I've done something close to this in ...
0
votes
1answer
18 views

How to pass variables to template to use it in email?

I've written a "hook_mail()" to send html emails. I have everything but I would like to use a custom template. I use a "hook_theme" as well, but my question is how can I pass variables to use it in my ...
0
votes
1answer
29 views

Alter existing route's output formats?

I want to alter the entity.node.canonical route so that when it is accessed using ?_format=json it will return the rendered node in JSON. So far I have created a RouteSubscriber that alters the route ...
0
votes
0answers
12 views

How can we add header in redirect url just like adding header in curl

I am trying to call an external url from a drupal environment using RedirectResponse. In this request I need to add a custom header. I tried it using cURL and I got the custom header in the request ...
-3
votes
0answers
17 views

Calling Microsoft Azure Queue from Drupal custom module is not working [on hold]

Use case is to invoke MS Azure queue code as and when the external file loads into Drupal physical storage of file path to update as message. The standalone PHP interface is working as expected with ...
0
votes
0answers
15 views

Error 500 after disabling update manager by mistake

this morning I have disabled by mistake the update manager module while I was trying to enable the install module button (that has disappeared). After this wrong operation, the website returns me a ...
0
votes
1answer
16 views

Add second expression to query

I have a probably trivial question, but I could not find an answer. I have this query, which works fine: $query = db_select('books, 't'); $query ->fields('t', ['publication_year']) ->...
0
votes
0answers
11 views

twig access variable from sub-rendered item

here's my current twig template menu-levels.html.twig as I've hooked preprocess_menu_levels(&$variables) {$variables['display']='mobile';} => I get display variable in the first parent twig ...
0
votes
1answer
22 views

import address data from CSV

I migrate my content from an old D7 site to D8 site. All went well, except the addresses from field address where not migrated to the new address field. Then I use feeds, feeds_migrate, content-...
0
votes
0answers
18 views

How to reference webform field option?

So I have webform module installed and I created a webform. Webform has an choice field (drop-down). Let's say you can select one of 3 options: "one", "two", "three". I need a way to add (editable) ...
-1
votes
0answers
16 views

How can I add a sitewide proxy to the HTTP client service?

On a particular environment, all the external requests via Drupal's HTTP client (http_client service) should go through the proxy. However, there is no option to set proxy details on each environment ...
0
votes
0answers
17 views

How can I override the form-element-label.html.twig template?

In a view, I have checkboxes displayed using the better-exposed filter. Ajax setting is true. Currently, there is no template suggestion for overriding form-element-label.html.twig. Somehow by adding ...
0
votes
0answers
41 views

Page title not being rendered after page refresh (possible cache issue)

This is the problem at hand: the first time I access a page after a cache rebuild, the title of said page is displayed correctly. But when I refresh (or access it later after navigating other pages) ...
0
votes
0answers
19 views

How to get the values of web form remote post handler?

i have created a web form handler ie. Remote post Handler. and i have gave one URL for posting the submitted data. How to access those submitted values in that particular page. How to GET ...
-4
votes
0answers
28 views

error(FILE SYSTEM - SETTINGS FILE) setting DRUPAL [on hold]

I was trying what I found in different articles that I found on the web but nothing works. FILE SYSTEM first try second try third try SETTINGS FILE first try second try third try the version ...
0
votes
0answers
20 views

Import a node with paragraphs [on hold]

I would like to import node with multiple paragraphs, but I can't make the Feeds module work with paragraphs. This is a sample of XML data that needs to be uploaded. <test-feed> <...
0
votes
0answers
35 views

Caching user profile image? [duplicate]

If I log in as User 1, i see user 1's profile picture. If I log in as User 2, I see user 2's profile picture. As expected. But after browsing a bit, User 2 would suddenly see User 1's profile picture. ...
-2
votes
0answers
22 views

Bootstrap subthemes won't render blocks with embedded forms [on hold]

In a bootstrap subtheme, my blocks with embedded forms do not render. I verified that even if I enable only the base theme, the problems still persists. Any thoughts on why blocks with embedded forms ...
3
votes
0answers
42 views

How to achieve layout nesting in layout builder?

We have a content type (Page) and a vocabulary (Sections). The content type has a reference field to the vocabulary, and the vocabulary has a reference to a menu. Also, we are interested in being able ...
0
votes
0answers
24 views

entity_print adding google font [on hold]

i'm using D8 and entity_print module to print some page contents to pdf. I wanted to add google fonts to the printed node. And i'm using dompdf as engine. I tried both ways: Added styling (like ...
2
votes
1answer
22 views

Migrating csv data as array into multi-field

How do I migrate a sequence of data into a multi-value field? I am learning D8 migration and working on a large CSV of historic census data from around the world. Example below: id,Country Name,...
-3
votes
1answer
37 views

Login link in menu showing to logged-in user [on hold]

On a Drupal 7 site, I created a login link on the main menu with the path user/login. For some reason, the link remains visible to users that are already logged in. I thought this link is supposed to ...
0
votes
0answers
18 views

jsDelivr CDN provider does not work using bootstrap for drupal [on hold]

So I'm trying to create a drupal theme with bootstrap. However my boostrap does not get loaded due to malfunctions of jsDelivr (I think). PS: Does anyone know some good Drupal guides/books? Because I ...
0
votes
0answers
29 views

How to remove or fix Missing bundle entity that causes error

Working on a new site, and I have a "regions" taxonomy vocabulary that has mysteriously disappeared, even though it shows in the list of taxonomies. If I try to view, edit or delete the taxonomy by ...
1
vote
1answer
48 views

How to write test(s) with specific config to test custom access checks?

I have built a custom module that alters some of the User routes (view, edit, delete) to do 3 things: Forbid account editing, except a user who has 'administer users' permission Forbid account ...
0
votes
0answers
18 views

Follow symlinks inside of default/files

I am running Drupal 8.7.6. The default/files directory is a symlinked to a read only mount (/mnt/files_ro). Drupal needs to write inside a few folders as it aggregates and caches assets, so I created ...
1
vote
0answers
34 views

Composer using old JSON for contrib module?

I maintain skilling, a contrib module. This... composer require drupal/skilling ... reports... [RuntimeException] Could not load package drupal/skilling in https://packages.drupal.org/8: [...
0
votes
2answers
30 views

Duplicate content between multi-sites

I'm working on a feature of a Drupal 8 multisite with separated databases for each site trying to implement the following requisite. When posting news to the main site (all the other sites are ...
1
vote
1answer
21 views

Table in custom form + empty values in form_state

In a custom form I created a table element: // Table results. $form['table'] = [ '#type' => 'table', '#header' => $header, '#rows' => $rows, '#attributes' => ['id' =&...
1
vote
0answers
21 views

Change field type for custom entity (from integer to decimal) with existing data

Yes I have seen previous answers about that, but I'm looking for an new answer : That does not use SQL request That does not use deprecated function like db_change_field() maybe that uses the new ...
0
votes
0answers
25 views

Ajax add command to open a new URL

in a custom module, I created a custom form. On this form, I have an ajax button to open a specific file (.pdf). Here is my code in a custom submit function : $url = 'myfileUrl'; $response = new ...
0
votes
0answers
25 views

How do I allow authenticated users to remove their resume file from their user profile?

I am using Drupal 7.67 instance with CiviCRM integrated. Authenticated Users on my website are able to upload Resume to their user profile. However, they aren't able to remove the resume or replace ...
0
votes
2answers
24 views

Hide one form element until another is selected

Is there any way to disable the field 'model_article_nr' until 'model' is selected this is what i have and as it is now i can select 'model_article_nr' before i have choosen a model which leads to ...
2
votes
0answers
55 views

Does the structure of the module's src folder matter? [on hold]

I've read about the Basic Structure guide to building a Drupal 8 module. It's great that it outlines the basic files needed to get a module up and running. Where it falls short is the contents of the ...
0
votes
0answers
20 views

How can I add fields to a custom content type

I am using the following code to set create a field programmtically and I am trying to set the cardinality as unlimited. But I am getting the error and I cannot add any values. Symfony\Component\...
-2
votes
1answer
26 views

How are clean URLs with 200 response codes being managed without doing a RewriteMap?

I would like to know how Drupal handles clean URLs without getting a redirection 302 response. When you have clean URLs enabled, the ?q=123 part of the link goes to /my-node-title and you don't get a ...

15 30 50 per page