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

D10 Media Image Insert Issue

Greetings,

  • Drupal Version 10.1.6
  • Web Server Apache/2.4.52 (Ubuntu)
  • PHP Version 8.2.13
  • Database Version 8.0.35-0ubuntu0.22.04.1
  • File system Writable (private download method)

Using core media module to upload images then adding them to Book content page.

The chosen image is not displayed, a different image is shown. Choose one - Get another!

Is this a bug to be reported or a mistake somewhere at my end? Please advice.

css for mobile device

This code ..

.page-wrapper {
  max-width: var(--max-bg-color);
  background: var(--color--white);
  margin: auto;
  width: 75%;
}
@media (max-width: 600px;){
  .page-wrapper {
  width:100%;
  }
}

doesn't load the @media css on a mobile device, the width 75% is loading on all devices. Can't see why it doesn't work, any ideas much appreciated.

User Lat and Long - D10

Hi guys,
what i want is to grab the user lat and long from the browser and store into a filed in a content type form. I don't want user interaction because i have to check if user position is close to some  dynamic lat and long stored in other nodes.

I make it works in a custom site but I cannot reproduce with drupal by JS. 
 

if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
}

Aggregator error after istalling on D10

I've installed the Aggregator module on Drupal 10 and I'm receiving an error. I migrated a database from D9 that was using Aggregator in core but now I'm getting this error with Aggregator on D10:

Error: Interface "Laminas\Feed\Reader\ExtensionManagerInterface" not found in include() (line 13 of /code/web/modules/aggregator/src/ZfExtensionManagerSfContainer.php).

Composer error while trying to upgrade to D10

Trying to upgrade our site from 9.5.11 to Drupal 10, but composer errors out.

I used the upgrade_status module to remove, fix, or update any issues with compatibility to the point it said 100% compatible. I then removed upgrade_status, and started making changes to our composer.json file to upgrade to 10.

I feel like its' something small or something stupid, but will admit I'm still a bit of a newbie dealing with composer.

Any assistance at this point would be greatly appreciated.

Thanks in advance.

How to remove the "add shorcut" icon?

How to remove the "add shorcut" icon?

I have tried to add the following code to style.css and flush all caches with Drush:

.shortcut-action, .shortcut-action--add, .shortcut-action__icon {
    display: none !important;
}

It's not enough.

Pages

Subscribe with RSS Subscribe to RSS - Post installation