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

Dynamically calculate the body field of a node in Drupal 7 avoiding PHP

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').

Integration: Linguise with Drupal for Multilingual Site

Hello everyone,

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.

Cannot fork repositories

I am trying to fork a repository (entity_events) and getting a generic error:

An error occurred while forking the project. Please try again.

I tried a different repository (address) and received the same error.

The console is showing network errors:

I don't see any way to add images to this post (really Drupal!?)

There are two errors:

  • Name: git-error - Status: CORS error - Type: xhr 
  • Name: git-error - Status: 404 - Type: Preflight

 

Drupal 10 Slick Slider and DataTables Causing Lag and Crashes on Desktop

Hello!

I'm developing a Drupal 10 theme using DXPR Builder with the following setup:

Setting a Date field programmatically with Timezone information.

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']);

Webform generic_element option?

This is a knowledge question because I've never worked with webforms before and am curious about a finding.

Pages

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