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

Module for Drupal 9 to add a new column "region" in Manage Display?

Hi!

I am looking for a module to add a new column "Region" to select the position of the fields (right, left...) in the Manage display. I was working some time ago on a web made with Drupal 7 and I could see that there was a column like this. There were four columns: Field, Region, Label and Format. How could I add this column?

Thanks in advance!

JSON REST doesnt give alt and title

Hi team

When i was using drupal 7 i've created a json api with some image and the output was like this:

"imagePlaya":{
"src":"http://localhost/drupal7/sites/default/files/as_dom.png",
"alt":"alt img",
"title":"title img"}

but in drupal 8 when i create a json rest api the image is like this:

"img": "/sites/default/files/as_dom.png"

How can i get title and alt like drupal 7?

could you please help me?

Regards
Mario

Multiple hook_FORM_ID_alters or big switch/etc in hook_form_alter?

I have more than 20 content entity types that I need to perform some alterations on field values at the time of form submission (or thereafter).  Of course, I'd prefer to do this with a built in event but I can't find a D9 event that really applies to this case.  From a resource/memory/speed standpoint is it better to implement 20+ different hook_FORM_ID_alter's, one for each content type, or use the generic hook_form_alter and have a big switch/if statement that calls different methods/classes, etc, for each content type?  

Hide "Choose File" Button for only one form

I have a form with the id of node_contact_edit_form. On this form it has an image field that has the default Drupal choose file button. I would like to disable/hide the button and only allow the users to pick the images from a folder I have on the server. I have tried hooks like form_node_contact_edit_form_alter but can't figure out how to target the button only. Anyone have some ideas?

Display orphaned references of deleted user

Is there a way to display the name of deleted users, when they are referenced in a node, provided I store the name of the user id somewhere? 

How to create an archive containing files with the Drupal interface ?

My question will be very complicated ;-)

 

When you reserve a domain name with a host, it offers a free space of 10 MB to publish a web page (this type of offer does not support PHP).

I created a small 8MB website with HTML, CSS and JS (it's also a PWA). It is really very simple. Here it is :

https://github.com/S1BIOSE/E-business-Card

I want to create in Drupal 8, a small website generator for my clients. The little website I created should serve as a model.

Pages

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