Drupal is up and running but how do I ...?

Is it possible to allow new attributes on tags controlled by plugins?

If ckeditor5 is configured with the List plugin, it adds the <ol> and <ul> tags to its managed tags list.

Site installed with Composer has errors in 'run update' and 'install new module'

Everything seemed to run smoothly, downloading modules via Composer, enabling them and updating DB via Drush.
 But at some point I needed to install a module via GUI, and to my surprise I realised that in both sites run via Composer I have the exact same problems.
If I activate 'run update' I get the error "In order to run update.php you need to either have "Administer software updates" permission or have set $settings['update_free_access'] in your settings.php", and if I try to install a new module it says "Access denied - You do not have permission to access this page".

Subtract two date fields using twig

Hi,

Would be grateful for some assistance with this.

I am building a webform using the webforms module in Drupal 10 and I want to subtract two date fields and as a result display the difference between the dates.

For example, {{ 11-01-2024 - 10-01-2024 }} = {TheDifferenceInDays}.

I have tried using the following expression in my computed twig field however this is returning a value of 0 - is that because the date fields need to be in a specific format?

{{ date1 -  date2 }} 

Thanks

All revisions have the same timestamp, why?

I'm having this issue where all the revisions have the latest timestamp of when the node was last saved. I need these to show the real revision time, any idea what could be causing this? Thanks.

CKEditor 5: How do I keep a soft hyphen &shy; in the source code?

If you add a &shy; in the source code, switch back to text edit and then look into the source code again, the &shy; is gone. CKEditor 5 replaces it with an invisible /u00AD, which is still a soft hyphen.
BUT … since the Unicode character is invisible, an editor has no chance to see if and where a &shy; has been added. Why does CKEditor hide this information?

Boost cache suddenly becoming huge

Starting around 10 days ago the boost cache on a few of my Drupal 7 sites have grown exponentially. On one site I have just cleared 232Gb from the cache/normal directory.

Most of the cache files are in a particular directory relating to a node type. This node type is for hotels which are imported via an api. At present there are 30,000 of these. Obviously this is a lot, but it has been this many for years without the cache being massive. In fact, looking at the disk usage it is a very sudden and sharp rise.

Pages

Subscribe with RSS Subscribe to RSS - Post installation