All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 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. ...
0
votes
1answer
12 views

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

I have the following in my default/files/.htaccess file: SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 ...
0
votes
0answers
11 views

Should I create one or multiple EventSubscribers for different functions, but same module and event?

This is more of a design decision than troubleshooting question. I have 3 different things I want to do when a certain Event occurs. I could either: Create one EventSubscriber for the event, with ...
0
votes
0answers
11 views

Difficulty with checkbox boolean feature

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
8 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
9 views

How does accessibility compliance in Backdrop CMS compare with that of Drupal 8? [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
9 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
11 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
16 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 =...
-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
0answers
25 views

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
14 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
32 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
8 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
15 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
11 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
13 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
13 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
23 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
35 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
18 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
14 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
14 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
19 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
34 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
14 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
22 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
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
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
24 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
19 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
18 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
43 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
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
22 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
39 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
31 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
44 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
36 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 ...

15 30 50 per page