How to count the number of class ?

On my page I have several blocks, some have a class task-success and others have the class task-alert.

How to add a class task-alert to the menu if the class task-danger is present in the page ?

I managed to do this with the JS code below. But the class is added to the menu link only if I am on the page (the page containing the task-danger class). If I change pages, the class is not added to the menu link.

When a visitor arrives on a page 403 how to put it back on this page after he has logged in ?

I have a site with Drupal 8. I am an anonymous user. I am visiting the page "Messaging" which is accessible only to the authenticated user. The page displays a code 403 with a block to connect me.

When I connect, I arrive on the homepage of the site.

I created a 403 custom page with a "Connect" button in a Twig file of my theme:

<a class="use-ajax btn btn-success btn-md" href="/user/login" data-dialog-type="modal">Se connecter</a>

How to make the user who logs on a 403 page, return to the current page?

Easy way to copy a site's setup (block, view, etc) into another site?

Hello,

I am using a multi-site setup where I have various sub-sites representing various sub-domains. Example:

- cities.hello.com
- cars.hello.com
- food.hello.com

Drupal site down no error mentioned

Hi everybody

I have installed this module "Facebook Instant Articles" and the installation didn't finished.

but it don't show any error also!

when I go my web site , it is a white page which appear!

what to do to retrive my website?

thank you

Migration Issue

Been banging my head on this for 2 days and hoping to get someone smarter than me to help!

I set up a migration module to migrate a json feed from a url to a custom content type.  The json has lake information for multiple lakes grouped by lake.  I am only interested in the data for one of the lakes.  When I run my migration, 15 objects process and 15 fail. 

Themes

We are re-theming our large Drupal site (hundreds of pages with unique content). We are transitioning from a business which sells services directly to more of an affiliate role. 

We were wondering if any of you have strong opinions (positive or, especially, negative) feelings about the theme sites out there or the larger theme-building companies (or individuals who make lots).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x