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

How to stop Drupal from trimming multi-cardinality fields?

So I got this multi-cardinality field of type `text_long` which always contains 3 entries. Let's call them field_1, field_2 and field_3.

After saving the containing node, all the empty fields are getting stripped from the saved entity when they are empty, this is not what I want.

So whenever someone saves a value into one of the latter fields (let's say field_3) because the field_1 and field_2 are empty, the first 2 will not be saved and on subsequent node edits the values I put into field_3 are being shown in field_1.

What I've tried so far:

error markltup! Universal markup editor

hello everyone,

why my Drupal 7 will be show up this error URL (markltup! Universal markup editor)?

https://www.mygovuc.gov.my/sites/all/libraries/latest/index.html 

any solution? how to fix it?

Thanks in advance

node->save() fails when trying to update a node

Hi,

I'm writing a standalone php code(not a module) that uses Drupal API 9.2.6

If I try to load a node (either by nid or uuid) it loads fine but when I try to save it back it fails (even without any changes)
$em = $kernel->getContainer()->get('entity_type.manager');
$mynode = $em->getStorage('node')->load(69); // WORKS FINE AND LOADS THE NODE DATA
// do nothing
$mynode->save();  // FAILS

footnote tag

Hello
I can't manage to have the <fn> or [fn] tag described in the footNote module
taken into account.
The icon for footnote is note either available in the menu
integrated with the Ckeditor or Ckeeditor5.
Any help?
Sorry if the question has already been asked, I don't how to search in the 
forum.

Create a field with same value on all nodes

Hi team

I doubt,

I've created a content type with some fields, but i need to add a field that will be used to save a value and showed on all nodes for this content type,

So how can i create a field with the same value for the same content type?

Could you please help me?

Regards

Mario

Trigger code to execute after multi-value field order is changed

What is the best way to trigger code to run after a user changes the order or weight of items in a multi-value field on an entity?

In my particular case I'm mostly interested in when a user changes the order of content in a multi-value field on a custom content type. The following is not my actual use case, but it's the easiest analog I could describe simply to illustrate an example.

Pages

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