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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

Call Back

In a content type I have various fields including a date field and a time field. Both call their respective callBack.
The problem arises when I try to write the Date via the keyboard and not via the widget. Every time I type a key the callBack is invoked and it's boring
This is the code
              $form['field_data']['widget'][0]['value']['#ajax'] = [
              'event'           => 'change',
              'disable-refocus' => FALSE,
              'callback'        => 'CBDataMiss',

Attaching submit handler to entity_autocomplete

I am working on some form api functionality in where there is an entity_autocomplete that populates based on a view. I am trying to attach some additional ajax/submit functionality to this so that once an entity is selected, it submits the ajax request/form to do some additional things. 

(For example, if a certain entity type is selected from the autocomplete, additional fields show up). #submit doesn't seem to work on entity_autocomplete, and you can't rebuild form_state (or set it) in the ajax callback, so I am trying to find another way to do what I need. 

Changing Url of the website in the subfolder from htaccess

Hi,

Thank you to an amazing Drupal Community here. It has been a great help to build our website on Drupal. But we have a specific issue:

Our website is on the current url: https://iasmantra.com/dev-dgb/web/
(The public-html folder has many other websites, then in dev-dgb folder within the web folder the drupal files are)

Drupal 9.2 and Paragraph module

I am working on drupal 9.2 with the paragraph module. I want to remove the delete button that appears on the right of the form during user input because this delete button does not make sense for the end user who does not need this. Where and how to remove this button that appears on each paragraph content.

It's urgent.

Thank you to all of you

share

Is there a way to get the taxonomy vocuabulary machine name from its term?

Just as the subject asks -- is this possible?  

Background: We are on Drupal 9. The starting point for a taxonomy term page comes from a view.  The view calls all of the taxonomy terms from a specific vocabulary (ex: Books) and groups them based off of the first letter.  This view has a block for the alphabet (A, B, C...) and then a page that displays all taxonomy terms from the selected letter.  When you click on the term, it takes you to that taxonomy terms' page. 

Pages

Subscribe with RSS Subscribe to RSS - Module Development and Code Questions