All Questions

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

Assign a particular permission to a specific user role while installing the module [duplicate]

I have custom permission called Access vm content list in my module's module_name.routing.yml. And I listed the same in the module_name.permission.yml to get it managed via admin panel. While ...
2
votes
0answers
49 views

Webform module loosing language for referenced options

First I have content type "Quiz option" which is translatable. Then I have a view that returns Entity references of that type. For language option I selected "Content language of view row" and also ...
0
votes
0answers
25 views

How to show date as “XX ago” (only two digits) in comments/node/taxonomy/blocks? [duplicate]

This code works for comments but I need to display the date in two digits (XX minutes, XX hours, X year) not as "XX hours XX minutes" for example. And I need to apply this format for the rest of the ...
-4
votes
0answers
37 views

Show different item each render [on hold]

I have a Drupal 8 view that has several items in it, but I've configured it to show just one. What I want to do now is to iterate through the items on each page render, so each item get's equal ...
1
vote
0answers
14 views

Composer update - Your requirements could not be resolved to an installable set of packages

when I run a composer update --with-dependencies, I get the following error message: Problem 1 - don't install drupal/core 8.6.0|remove drupal/drupal dev-master - don't install drupal/core 8....
-1
votes
0answers
24 views

Site HTTPS insecure on some browsers and others are fine [on hold]

I have the following url: https://www.example.com/about It shows that it's insecure on my phone, Edge, and Firefox browser. But on Chrome desktop it works correctly by redirecting it to the https://...
0
votes
0answers
15 views

Overriding the User entity list_builder handler

I'm trying to override the User entity list_builder handler to add another column to the table and implement some JavaScript search functionality. The code I'm using is below which is in my modules ...
1
vote
1answer
41 views

Why ajax button calls submitForm?

I have no problems with using Ajax in every form element other then button. When I'm clicking this button '#type' => 'submit', '#ajax' => [ 'callback' => '::ajax_function', '...
0
votes
1answer
16 views

Why can't I debug twig templates with intellij idea?

I can't get intellij idea to break on twig files. It is breaking on theme and module files fine. This means that xdebug must be setup correctly. I don't believe that it is caching as I've deleted the ...
0
votes
2answers
35 views

Cloning nodes between multisite instances with separate databases

I'm working on a Drupal 8.6 multisite and my client wants to be able to duplicate content between many of these sites. The codebase of the websites is the same, but each of them uses a different ...
0
votes
0answers
12 views

Cant get Quick Edit Link to display on Published Content

I am having a problem with the Quick edit link displaying on published content? Is this working as designed or am I missing something. The quick Edit link appears on all of the unpublished content. ...
-1
votes
1answer
54 views

.htaccess not working in files folder to disable php files from executing in files folder

I have the following in my default/files/.htaccess file: SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 ...
0
votes
1answer
17 views

Difficulty with checkbox boolean feature [on hold]

Our stakeholders asked for a feature where they can "pin" blog posts (basically the "sticky" feature, but I'll use the term "pin" and "pinned" in this question), where certain posts that they select ...
0
votes
0answers
17 views

Block or ban ip addresses based on site-wide contact form category

How to create a rule with the Rules module that blocks or bans ip addresses based on the category that they selected on the contact form for anonymous contact submissions via the site-wide contact ...
-3
votes
0answers
24 views

How does accessibility compliance in Backdrop CMS compare? [on hold]

One of the benefits of Drupal 8 was to enhance compliance with Section 508 accessibility requirements. To what extent does Backdrop match Drupal 8 regarding those improvements? Do those ...
0
votes
0answers
14 views

How to change where the sqlite database is generated when running tests?

When running tests, I have some .sqlite files and tmp files created in my project root while the test is running. This causes my IDE to go crazy. Is there a way to tell Drupal in phpunit.xml to store ...
0
votes
0answers
15 views

Contact message entitytype missing “id” parameter after 8.7.6 update

I'm updating site from 8.7.1 to 8.7.6, and I'm getting strange error: Error: Call to a member function getType() on null in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->...
0
votes
1answer
26 views

UTF-8 encoding when creating nodes (from mails)

I'm making a customized version of the Mailhandler module (based on inMail), which has a node creation function: protected function createNode(MimeMessageInterface $message, DefaultAnalyzerResult $...
-5
votes
0answers
19 views

Paragraph ordering [on hold]

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 ...
-2
votes
1answer
34 views

Calendar/datepicker popup not working on safari

Below is the date type form field I have in some form which renders on chrome correctly. $form['date']['air_date'] = array ( '#type' => 'date', '#title' => t('Air Date:'), '#required' =&...
-3
votes
0answers
18 views

facing problem files are not downloading on android mobiles [on hold]

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
1answer
41 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
1answer
12 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
16 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
21 views

Contextual filter: Content: Nid issue [on hold]

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
15 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
24 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
1answer
49 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
29 views

Can't Install search_api_solr and search_api [on hold]

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
3answers
18 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
21 views

The Commerce Node Checkout module isn't ported to Drupal 8. Has anyone found another solution? [on hold]

I basically need the functionality of Commerce Node Checkout https://www.drupal.org/project/commerce_node_checkout in Drupal 8. Has anyone been successful selling "Nodes" with the commerce module ...
0
votes
1answer
20 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
36 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
15 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 ...
-4
votes
0answers
24 views

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

how to invoke Azure queue code in Drupal 8.The standalone PHP interface is working as expected with Azure Queue but not end-end with drupal application. Is there any working sample for this scenario. (...
0
votes
0answers
16 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
18 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
25 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
20 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
22 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
47 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
23 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
30 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
31 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
23 views

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

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
46 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
25 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 ...

15 30 50 per page