OSTips-How To Easily Replace Media In Drupal 8

Quickly Create Joomla Websites With Your Own Distribution

One of the great things about Drupal’s new media manager is the ability to easily see all the media you’re using on your website.

What if you want to replace one of those images or even more likely a PDF that needs to be updated?

Well in this OSTip, I’m going to show you how.

Let’s go!


“Hi and welcome to OSTips from OSTraining. I’m Rod Martin.

Osborne is the creator of this module.  It installs like any other module, but here’s the instructions you’ll need to know to enable the module.

  • browse to the forum
  • display configuration for any file based media types
  • enable the replace file form display widget (usually put it right under the file or image widget)

This is how it works. I’ve already installed the media entity file replace.

  • head over to structure media types image
  • manage form display
  • grab replace file
  • drag it up under tags
  • click Save

Now under our media item, you’ll see the replace file section where you can replace the file and update everywhere it’s been embedded in one simple action.

All right well that’s it.  It can’t be much simpler than that, and it adds such amazing functionality to the media manager for Drupal 8.

This has been OStips from OS Training.”

Author

  • Rod Martin

    Rod holds two masters degrees and has been training people how to do "things" for over 25 years. Originally from Australia, he grew up in Canada and now resides just outside Cincinnati, Ohio. He has worked in both the non-profit and for-profit worlds, in small companies and large corporations. His extensive open source experience includes WordPress, Joomla and Drupal and he really knows how to help you get the most out of the system you chose. Rod plays ice hockey a couple of times a week and rides his Goldwing motorcycle pretty much everywhere he can.

    View all posts
0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Dalin
Dalin
4 years ago

Except that won’t work. Instead you need https://www.drupal.org/project/media_entity_download

1
0
Would love your thoughts, please comment.x
()
x