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 am not sure where to post this, if there is a better place this question fits let me know. But I am a student website developer for my university. We have this website here: https://signetwork.org/
In 2010 I created a free portal (marketingaziende.it) in which each company with a VAT number could create its own web page for advertising and marketing. Initially, the page was very simple and the html necessary for the visualization of the company was inserted in the body field of the node (type 'story').
I’m exploring the best way to manage multilingual content in Drupal and wanted to share an option I recently worked with: Linguise. It’s an AI-powered translation tool that integrates with Drupal to help translate websites automatically while keeping them SEO-friendly.
This is not a question, just a place to put some information which I could not find for the love of god anywhere and ChatGPT sent me down a wrong rabbit hole. Hopefully it saves somebody else some time? :-)
$new_datetime = gmdate('c', strtotime('+10 days'));
$date_time_obj = new DrupalDateTime($new_datetime, new \DateTimeZone('Pacific/Apia'));
$entity->set('your_date_field', ['value' => $date_time_obj->format(DateTimeItemInterface::DATETIME_STORAGE_FORMAT), 'timezone' => 'Pacific/Apia']);