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

Problems #dependecy of ctools with #ajax in form api

Hello, I have two fields in a form that alternate as I select a third. This function is made with #dependency of ctools. I am trying to do a validation with #ajax so that the page is not read every time it is pressed. The user presses submit but on the screen that returns #ajax the functionality of #dependency of ctools is lost and the two fields can be seen at the same time. I have already tried many things but I am stuck, if someone has had the same problem I would appreciate the help. This is the code of the three fields.

Select a different column using entityQuery

$temporary = Drupal::entityQuery('group_content')->condition('id', $id)->execute();

This is returning the ‘id’ column in my table. I want a different column, entity_id. What should I call to return a different column rather than only returning the id column in the table.

Show description of field file in twig ?

Hi,

It's possible to show the description of field file in field.html.twig ?

Now, i have only url of file and label.

Thank you

Anthony

Javascript in a specific node while edit/add content

I'm really new in the use of Drupal 7.

I would like to create a form with 2 fields width_inch and with_cm where after the user insert the value automatically will be computed the other field.

I created template.php inside the theme directory (/ sites / all / themes / my_theme / template.php ):

How to change menu order programmatically.

Hello friends,

I have added menu items to my main menu using a links.menu.yml file inside my custom module.

Pages

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