Questions tagged [drupal-8]

Drupal 8 is the Drupal version that was officially released on November 19, 2015. Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/.

Drupal 8 introduces major changes, such as the support for HTML 5, better support for web services, multi-language support, mobile devices, and a configuration API.

Use this tag only if your question relates specifically to this version.

Requirements

  • Web server: Apache, Nginx, or Microsoft IIS
  • Database server: MySQL 5.5.3/MariaDB 5.5.20/Percona Server 5.5.8 or higher with PDO and an InnoDB-compatible primary storage engine, PostgreSQL 9.1.2 or higher with PDO, SQLite 3.6.8 or higher
  • PHP: PHP 5.5.9 or higher

Related tags:

Resources

2837 questions
0
votes
0 answers

Drupal 8 - Weird behaviour with parameters

I have a form that accepts one input and after submits redirects to a controller that does some search stuff with solr. I have discovered some weird behavior when certain words are used as a search term for the parameters of the route: This is the…
Björn Grunde
  • 55
  • 1
  • 9
0
votes
0 answers

How can I prevent one template from displaying cached values?

I have a site with Drupal 8.9 and Twig Tweak. I created 7 view blocks to set up a task list in stores. I want to display a task counter for my current user on my home page. The tasks checks : If the store has no product (danger). If a product has…
user13431706
0
votes
1 answer

search_api - guest pages and internal pages

Does anybody have a hint how to get two different searches on a Drupal 8.8 site? This means, if a guest uses the search, only pages of type page and article should be listed in the result. If an authenticated user uses the search, all pages of any…
DaMa
  • 1
  • 1
0
votes
1 answer

Hybrid Composer/FTP Drupal 8 workflow questions

Is it ok to use composer on localhost to upgrade core and modules, and then FTP the files to the server? I'm on shared hosting, and although it's possible to use SSH with GIT, it's a pain to set up... Some information about my use case: No multiple…
0
votes
2 answers

Is there a way to use multiple languages in a single PhpStorm file?

So I have a potentially new use case. I'm trying to adopt a Single-File-Component method of creating code and templates for Drupal 8 content. There is a great Drupal module which facilities this (https://www.drupal.org/project/sfc), but I'd like to…
JonMcL
  • 143
  • 1
  • 8
0
votes
2 answers

Drupal redirects to /core/install.php when I try to open page including a SQLite query

I have a Drupal site on a web server. On one page of the site, I want to print out information from a sqlite database. But if I enter the url to the page, I get redirected to /core/install.php I integrated the database into the…
JHueck
  • 5
  • 3
0
votes
1 answer

How to display the TWIG code if the result is not 0?

I have a TWIG template in Drupal 8. The "dangers" value is incremented according to the result of each view. How to display the TWIG code if the result of "dangers" is not 0 I tested this code {% if dangers > 0 %} but it doesn't work : {% set…
user13431706
0
votes
1 answer

How to create a counter with TWIG?

I have a site with Drupal 8 and I want to create a task counter with TWIG. I use views with conditions. The counter must be incremented whether the view has a result or not. Here is the code I just made :
user13431706
0
votes
1 answer

Is there a separate Preview and Debug (P&D) mode on GTM Module in Drupal 8?

I have installed the GTM Module and DataLayer Module on Drupal 8. But if I want to inspect the tags fired, there is no GTM Preview and Debug mode option to be enabled on the module. Does this means we have to use the preview and debug mode from the…
0
votes
1 answer

What is the advantage of using Google Tag Manager Module in Drupal 8 instead of standard Google Tag Manager?

Module : https://www.drupal.org/project/google_tag The only difference and advantage I can see is , from the GTM module the variables will be automatically created while on standard GTM , all variables will need to be created automatically. Referred…
0
votes
0 answers

How I can configure apache mod_rewrite to use one or another project?

I have two projects under the same domain: The project #1 is a website made with PHP 5.4 and is not running on any CMS. The project #2 is a Drupal 8.x to where I'll migrate URL-paths of the project #1. The structure of my document root…
0
votes
2 answers

Drupal 8 CKEditor add extra

tag

Drupal 8 has CKEditor as core. CKEditor inserts extra tag when users input "enter" (newline). How to configure to disable this automatic paragraph tag?
Allen Chen
  • 133
  • 2
  • 7
0
votes
1 answer

How empting invisible field in Drupal 8?

I'm using this in node add form alter to hide field 'field_obyavlenie_ploschad_uch': $form['field_obyavlenie_ploschad_uch']['#states'] = [ 'invisible' => [ 'select[name="field_obyavlenie_rubrika"]' => ['value' => '4524'], ] ]; But if user…
Aleksandr
  • 3
  • 3
0
votes
1 answer

Failed to connect to localhost port 4444: connection refused on DDEV (docker) setup in drupal while running phpunit functional javascript tests

The test wasn't able to connect to your webdriver instance. For more information read core/tests/README.md. The original message while starting Mink: Could not open connection: Curl error thrown for http POST to …
harshal
  • 10,252
  • 3
  • 18
  • 23
0
votes
1 answer

unable to save images to style folder in drupal 8

when I attempt to view images in drupal 8 I am not able to see in any style , image style folder has been created however images are not saving in this folder I set permission 777 clear cache many time but did not work
1 2 3
99
100