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

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:

[Advice] Consume JSON:API Data, Save and Display

Hey Drupal Developers,

I have recently taken up a task to do the following:

  1. Set up a custom module
  2. Consume an API once a day
  3. Save it to the database
  4. Retrieve the data and display where ever necessary

Attempt 1:

  • I created a custom block.
  • Overided the block in the theme, e.g block--block.html.twig.
  • Added JS to fetch and customized the data to suit.
  • The realized I had no way to save it or access the Drupal API to save the data.

Attempt 2:

Pages

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