Bootstrap 4 menu in Drupal 8

I'm trying to rebuild the Bootstrap 3.3.7 menu to Bootstrap 4.1
In links it is necessary to receive a class active instead of is-active

{% import _self as menus %}

{{ menus.menu_links(items, attributes, 0) }}

{% macro menu_links(items, attributes, menu_level) %}
{% if items %}
{% if menu_level == 0 %}
<ul class="navbar-nav mr-auto">

{% for item in items %}

Trusted_Host_Patterns for subdomains

I have not found the documentation or forum posts helpful for this specific situation, so suggestions would be very appreciated.

I have a bunch of Drupal 8 sites that are subdomains, such as hostingservice.com\website.info

I also have cPanel Add-On domains, such as website.info

For trusted host patterns, which pattern do I use - or do I have to do both?

If hostingservice.com\website.info, how would that be written in the code?

1. hostingservice.com\website.info

2. website.info

Thank you in advance.

Trying to understand attacks: no forms = no harm?

Hello,

after an attack on a website I earlier built and managed, I wonder how to secure my own website. I use D8 for a website with no other users than me. There is no interaction, no forms to fill in, just pages. I wonder if such a website can be harmed by attacks as they were possible after the latest Drupal Core Remote Code Execution issue...

As you can read I have no clue about those issues, so I wonder: If I offer no way to post somethng into my database, are there still ways to intrude code when such security issues occur?

How to sell monthly subscription

Hello.
I want to sell monthly subscription using Drupal 8 .
Is there any way to do that?

there is some toturials for drupal 7 but I couldn't use them for my website.

I tried to use Rules Module but i got unexpected error.

Upgrading Drupal 8.2 to 8.5 - Error: Class 'PDO' not found

Hello,

today I try tu upgrade my drupal website fromù 8.2 to 8.5

I delete folder core and vendor (and top level directory), update new file with FTP. Then I try to launch update.php, but I have an error :

Fatal error: Interface 'Drupal\Core\ParamConverter\ParamConverterInterface' not found in /datas/var/www/htdocs/core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php on line 15

somebody can help me for this problem ?

Thanks for your help

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x