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

How do I remove the word "Body" on my webpage

I'm fairly comfortable with Drupal, however with a new page I created the word "Body" remains at the top, even though I have a page title and the word body is nowhere in my code. How do I get rid of this?

how to filter using view by published, unpublished and all content

Hi team

i'm creating a view and i would like to filter my content by published, unpublished and all content,

now its working with status=1 to get published, status=0 to get unpublished, but i would like to use status=all to get all content

is that posible?

could you please help me?

Regards

Mario

When old field revisions should be deleted from the database?

I have a question about old fields revisions in Drupal 8. For example I have "Full Title" field in different paragraphs. I have deleted this field from one of the paragraphs, for example from the "Hero". In the database there are tables: paragraph__field_section_full_title and paragraph_revision__field_section_full_title. In these tables all of the records for hero bundle deleted column values changed from 0 to 1.

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?  

Pages

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