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

figuring out the proper location of defining my javascript in drupal for specific page manipulation

First time touching Drupal 9 and I have got a site working locally on my computer using Docksal , Docker on Ubuntu 22.04  WSL 2 where I can test/make any changes. I have a Frequently Asked Question page and View,Edit , API etc options at the top of the page which looks like this. Here's some glimpse of how it looks like:

This FAQ page after inspecting in browser looks like this:

Installing Chosen Module help

Hi,

I am trying to install Chosen module on my local setup and below the steps I did 

how to publish a module

let's suppose I developed a custom module, tested it, it installs and uninstalls fine.

what are the steps for publishing it to the community ?

How to check inside code if the site is managed by Composer?

Hi

I need a piece of if-code which does the following:

if (site is managed by Composer) {

// do some stuff here

}

Any idea how to do this check with code?

Drupal 10 development books

Recently, two Drupal 10 development books have been released which is great news.

Drupal 10 Development Cookbook

Written by Matt Glaman and Kevin Quillen, the book was released February 2023, and is getting good reviews.

Unable to enable module that has been generated with drush generate

I have a strange problem and can't find an answer on the forum.

I tried to follow the steps of the Drupal Handbook to generate an content  entity module by doing the following steps:

drush generate entity:content 

After this i have the following file Structure:

Pages

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