This forum is for module development and code related questions, not general module support. For general support, use the Post installation 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. 

codeSnippet and CodeTag can't be installed

Hello,

I am using Drupal 8 (latest as of today)

I am trying to install CodeSnippet (https://www.drupal.org/project/codesnippet)  and CodeTag (https://www.drupal.org/project/codetag) in both cases they refer to /libraries location which does not exist.

Pages

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