Why You Should Use Media Links Instead of Just Embedding in Drupal

02 Jul 2015
| Last update: 25 Aug 2017

Drupal is a free, open-source web content management platform for content, community and commerce like Joomla and WordPress. Therefore, media links are very commonly used in Drupal. In many cases, sites with Drupal have many users. If you’re an IT developer or programmer, it’s worth the time to get to know and understand Drupal.

Drupal developers mold websites into exactly what their clients want. Media links are also very easily integrated into Drupal sites, but, sometimes, clients make it complicated and put their sites at risk. We’ll cover this issue in just a moment.

It’s rather easy for developers, once they understand the program, because a lot of specifications can be completed by clicking, dragging and dropping as long as they’re educated regarding what modules bring certain functions to the site.

Drupal & the Media Links Conundrum

For the IT expert, Drupal becomes a possible client magnet when the client needs a very specific thing done for their site that can’t be figured out with the available modules/tutorials. Another circumstance is when Drupal does something by default that doesn’t work for the client. In these cases, a Drupal developer or coder may be needed because, most likely, as many as 12 lines of code may need to be written as an entirely new module.

Or perhaps the specification could require an entire set of modules to be developed. Although these instances are rare, most clients are going to literally crave an expert because it’s far better to pay someone than to waste time trying to figure it out themselves. It’s these instances where your knowledge can create a nice little niche.

Since media links are an absolute must for any site, Drupal users are easily misled regarding whether they should be embedded. In an effort to save the client a lot of money and Drupal experts a lot of time, there’s 3 main reasons why it’s better to use the media browser instead of manually pasting and embedding code into a Drupal site:

1.  WYSIWYG Editors – (what you see is what you get editors) – When you have a site with multiple users, they could accidentally remove or corrupt the embedded code without even realizing they’ve done it. If you must embed media links, shut off the wysiwyg editor. This isn’t as common now with CKEditor because, usually, it can handle IFrames pretty well, but you run the risk of this breaking for your embeds in future updates. It’s much better to be safe than sorry.

2.  Security – Even though the editor doesn’t lock down by limiting the allowed tags, sometimes it’s wise to lock it down when there’s lots of people contributing to a site. Comments are locked down, thus inhibiting any dangerous HTML. If you allow any kind of embedding, it opens up the site to cross-site scripting attacks. Embedded Media offers video embedding without opening the site up to attacks.


3.  Media Links Management – Any video that’s added through media buttons gets added to “Files”. Then, it’s easily located in the media browser or by going to Content>Files. You can also find a list of pages that are using that media with the “Usage” link.  In addition you can search, sort, filter uploaded media, review thumbnails in one place and more. You may also set the player size, skin and available controls, by changing the “File Display” settings. Things like this are paramount for sites with a lot of media links and/or a lot of authors.

More Help for Your Website Struggles

Sometimes website issues are very easily solved…IF you’re an expert. Our site provides valuable tips that save time, frustration and money. Sign up for our blog [insert your company link] today and begin alleviating your website struggles.

Lynn Silva

Lynn Silva

Content Writer at Squirrly
Lynn is an expert at infusing mental skills into online business to improve sales, productivity and personal branding.
Lynn Silva