Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm beginner with Drupal and programming a custom module for my project. I need to remove a value from a multi-value field programmatically (cf my code below). I tried removeItem() function and offsetUnset() function given in ItemList.php but none of them worked.
How can I save my CKEditor configuration? I read that the appropriate file to save is the "config.js" file, but I cannot find it. I am using XAMPP on my local PC to build my site. I've spent a fair amount of time customizing my CKEditor toolbar and don't want to have to re-do all that work again. When I upgraded from Drupal 8.33 to 8.35, my customization was lost.
Al Jazeera Media Network is a global provider in news and media broadcasting. Launched in 1996, the channel broadcasts around the world 24-hours a day, 7 days a week from its base in Doha, Qatar. It distributes content in multiple languages, genres, and formats on a wide range of conventional and digital platforms, connected devices and via commercial partners.
Upon creation/saving of a new node in D8, I would like to automatically populate a field, using field values (multiplied) from the latest existing node.
Node A (existing latest node)
Field A1
Field A2
Field A3
Node B (new node, being created)
Field B1
Field B2
Field B3
Field B1 = Field A1 * Field A2 * Field A3
I have been trying to use the Computed Field Module. But I am not sure how to get field value from the latest node into Computed Field.