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

CKEditor5 buttons grayed out and image border question

Hello

I have an installation of  Drupal 10 and CKeditor5. I am trying to add the test ident butons, both left and right, but they appear grayed out on the menu bar of the editor on the content pages. How do I fix this?

Also I want my user to be able to add borders to an images uploaded via IMCE but I can't find anything on this?

Any help much appreciated.

Which template to override to change the markup of a reference field to taxonomy and how to get term fields values in template?

I have a node that has a reference field to the taxonomy vocabulary.
In the Manage display of the reference field, the Rendered entity format is selected, and the view mode (**field_image** field display)
I need to override the template and make something like this:

<div style="background-color: {{content.field_hex.0.value}};"> 
 {{content.field_image}}  
</div>

The variable may not be content but something else. It depends on the template.

GDPR and Google Consent V2 mode compliant, but how to stay using Google Ads and have them counting correctly?

We try to get the following working. We want our website to be GDPR and Google Consent V2 mode compliant, and still be able to use Google ads, and monitor the google ads.

We have the cookie banner of https://www.drupal.org/project/eu_cookie_compliance . We use some javascript to not renew the session when users accept the cookies.

How to do addtional checks after user has logged in - custom module

Hi All, in a headless Drupal setup I need to do some checking after the user has logged in and if needed logout the user programmatically. I try with hook_user_login and if the checks fail then I call user_logout(). With this approach I get errors and the user is logged in anyways! The error I get is " Warning: session_destroy(): Trying to destroy uninitialized session in Drupal\Core\Session\SessionManager->destroy() (line 237..." What is the right approach to handle this problem? Any help is very much appreciated. Regards Thomas S

Shared database with users info.

Hello 2 all. 
For a long time i am use Drupal 7 where i am use shared database for my users info. 
This is simple configuration and look like this

 

Views integration in entity - not a core feature?

Hi, Views in Drupal is probably the most evoluted core module, with a lot of options and flexibility.

One of the typical use cases is to attach a view to an entity, to show other entities B that are linked to the parent one A. When I say "attach", I mean that A passes some arguments (typically its id) to the contextual filter of the view to restrict the view to just related Bs.

This is a so common scenario that I thought there was a native/core module to do that but, after a long search, I couldn't find one:

Pages

Subscribe with RSS Subscribe to RSS - Post installation