How to add Numbering to Book Page Contents or Child Pages in Drupal 8 Book view

I don't know method to add Numbering to Book Page contents or Book child pages as below. Can you please let me know how I can add numbers to book contents or to child pages in book view as below in Drupal 8.

https://prnt.sc/ruftvd

Actually, I am not getting numbers for book contents in Drupal 8 after creating book and adding contents to it. Please provide how to do steps for above query. And below is the new book view without numbers in drupal 8.

How to display a result counter in the page menu link ?

I have a navigation menu on my site, each menu link corresponds to a page of views.

I want to display in front of each menu link, a badge with the number of results of the corresponding page views. Like this :

My menu <span class="badge badge-light">4</span>

How to display a result counter in the page menu link ?

https://i.stack.imgur.com/FoqYy.png

Redirect

I'm learning hooks and I need to put a check on the start page.
I want anonymous users to be redirected to the login page and redirected to the home page after logging in.

Only authenticated users must see the home page

I have tried both with hook_form_alter () and with hook_user_login (). I have been reading various codes for several days and doing various tests but I cannot understand where I am wrong
The version of Drupal is 8.8.5

Migrating content and Modules between two Drupal 8 sites

Hello,

I have two Drupal 8 sites installed with composer.

One is old and installed with drupal-composer/drupal-project which has been deprecated.

The new one is a clean install using drupal/recommended-project

Can I install the same Modules without doing it manually?

Can I migrate the content to the new site?

Thank you!

File permission changed to 664

Hello,

Every time I use composure and add a Module for example, all of the file permission are changed to 664. I have to then use Terminal to change them all back to 644.

Does this happen to anyone else?

I've found that I'm having to run chmod u+w web/sites/default every time.

Access denied for anonymous user on front page

Since D8.8.4 I have an 403 Access denied for anonymous user on all the front pages (I use domain so there is several domain with same issue). But all the other pages with the right URL can be seen e.g. /user/login .

I tried to remove Content Access, same issue. I cleared all the caches, still no access…

Any help and hint would be great ;-)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x