This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

New added service cannot be recognized by drupal 8

Hi,

I'm using Drupal 8.8.2, lightning 4.1.3.

I created a new service class in a custom module, it works on my local PC.

After I upload the code, and tried drupalconsole and drush both to clear and rebuild cache, but when I run this service, Drupal keep showing error message that it didn't know this service. I also tried delete all cache_* database tables, but the error still.

And at the logger I can see some error messages: Container cannot be saved to cache

How can I solve this problem?

Thanks,

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.

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

Viewing html file - Create page from outside server

I'm creating a form that sends a file to an outside server (via webform remote handlers). This server returns a .html file which I need to view from my drupal page but I can't seem to find a way to do this.

How could I view the html file in drupal or create a page from the server?

Thank you.

WSO2 and Drupal connection

Hi everyone, 

Is there a method to map roles defined in Drupal and roles defined in WSO2? So, is there a method to create on-fly ad user account on WSO2 server when someone want to register to my Drupal website?

Thank you so mush. 

How to refer to an entity with a start and end date ?

my question is complicated :-(

My site is a marketplace, that is to say that it brings together several stores belonging to several owners.

I want to set up pop-up stores. These are temporary physical stores that display products for a few months, weeks or days.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions