Knowledge Base

Search

  • Video block
  • Video Tutorials

  • Watch our easy-to-follow video tutorials for quick tips on designing and managing your store.
  • View Video Tutorials

Dynamic Media URLs

Unlike an external link, a dynamic media URL is an internal relative reference to an image or other media asset that has been uploaded to the media storage library. When enabled, dynamic media URLs can be used to link directly to assets in media storage. For example, you can use the WYSIWYG Editor to insert an image into a product Description field. As with all markup tags, the code is enclosed in double curly braces. The format of a dynamic media URL looks like this:

{{media url="path/to/image.jpg"}}

By default, images inserted into the catalog from media storage have relative, dynamic URLs. If you prefer to use a static URL, you can change the configuration setting. If dynamic media URLs are used in your catalog, but later the setting is disabled, each reference in your catalog will appear as a broken link. However, the links can be restored by again enabling dynamic media URLs.  Using dynamic media URLs can enhance your catalog, but can also impact the performance of catalog search.

Allow Dynamic Media URLs in Products and Categories
Allow Dynamic Media URLs in Products and Categories

To configure dynamic media URLs for products and categories:

  1. From the Admin menu, select System > Configuration.
  2. In the Configuration panel on the left, under Catalog, select Catalog.
  3. In the Frontend section, set Allow Dynamic Media URLs in Products and Categories to either “Yes” or “No.”
  4. When complete, click the Save Config button.

To use static URLs by default for media files:

  1. From the Admin menu, select System > Configuration.
  2. In the Configuration panel on the left, under General, select Content Management.
  3. In the WYSIWYG Options section, set Use Static URLs for Media Content in WYSIWYG for Catalog to “Yes.”
  4. When complete, click the Save Config button.
Enable WYSIWYG Editor
Enable WYSIWYG Editor