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

Bundle classes with custom content entity

The new bundle classes introduced in 9.3 look great!  I've got a use case that calls for that exact model, where we have a base content type with fields that will be common to all instances, extended by bundle classes that provide additional fields for specific content types.  So, I've got a custom content entity and a couple of bundle classes to go along with it, all generated in drush 11, and I've registered my bundles in hook_entity_bundle_info()

Unable to download Color Backport Module to replace the Core module being deprecated

Hi,

Following an announcement advising that the Core module "Color" will be deprecated, I'm trying to install the replacement: Color Backport but I receive the following error:

Could not find package drupal/color-color

Steps:

  1. I uninstalled the core module using the web interface - Now the module is not checked
  2. I run $ composer require 'drupal/color-color:^1.0'

What could be the problem?

Get webform composite element settings/properties in hook or customer handler

Hoping someone might be able to help me out. I have a custom Drupal 8 module which has a webform composite element with some settings/properties that are fields where I can either enter a webtoken to capture some data from the form or simply enter some data for later retrieving on the webform handler side. The issue is that I thought this data would be included in $_POST but it's not so I'm trying figure out how I can retrieve the data after the form is submitted. FYI, I don't even see this data being stored in the "webform_submission_data" table so not sure where it's being saved.

Media or Media Library JavaScript API

Hi All,
I'm wondering if there's any sort of JavaScript API for the Media/Media Library modules. I'm writing a custom module that has some front end code that needs to detect when a media item is selected (or removed) from a Media field. I also need to be able to grab the src URL of the thumbnail, so I need to wait for the AJAX call to finish before the event triggers. Is there a way for me to do this? Similar to how for CKEditor there's CKEDITOR.instances[id].on('change', function(){}) I'm hoping for an event to hook into.

Ajax and hook_form_alter

I'm using hook_form_alter on a node (content type):

How to integrate data from Oracle DB?

Hi,

I try to evaluate if we can migrate our website "FloraWeb" to Drupal.

The main content on FloraWeb is scientific data about plants fetched from our Oracle database, here an example:
https://www.floraweb.de/xsql/artenhome.xsql?suchnr=20421&

Pages

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