WordPress Plugin

Some companies use DAMS as a backend for their CMS tool of choice. This guide demonstrates the EnterMedia WordPress plugin. Once its content is understood, users will know how to publish assets from their media database to a WordPress site. Examples include creating a photo gallery and a video blog post.

Setup

1. Download the EnterMedia WordPress plugin from GitHub and install it through your WordPress plugin manager. The zip file without version numbers is a copy of the latest version.

2. The Access Key – this will need to be configured by the user. It can be anything but must be identical to the Access Key used in the WP Publishing profile on your EMShare site.
wordpress-pub10

3. Next step is to configure the publish destination in EnterMedia.
Go to Settings > Preferences > Publishing. Choose ‘WordPress CMS’:
wordpress1

4. Configure the publishing destination to match the specifications of your site. Note that the path to upload.php may vary for different versions of the plugin. The Access Key field should be set to the value in your plugin settings:
wordpress-pub12

Publishing to WordPress

Now that you’ve configured the plugin and your EnterMedia, publishing is as easy as 1, 2…

1. In the Assets module in EnterMedia, select the assets you want to publish to WordPress and select the Share menu option to publish to a remote server:

wordpress-pub2

2. Select the WordPress Server you configured as the publish destination and continue clicking next until your files are published. After the order completes, your assets will be visible in your WordPress Media Library.

Video Blog Example

In this example, we will demonstrate how to use the ’emplayer’ shortcode to embed a video in a WP blog post. Though this shortcode can render arbitrary assets, it is currently only supported officially for video assets. Any other usage may not have consistent results as features are added in the future.

1. Create a new post.

2. Add the shortcode where you want the video embedded passing in the asset id and dimensions if necessary (defaults are 100%):

wordpress-pub8

3. Publish or preview to see your asset in the post:

Wordpress - Publish Video

Simple Photo Gallery Example

In this example, we use the Simple Photo Gallery (https://wordpress.org/plugins/simple-photo-gallery/) plugin to demonstrate how to utilize your newly imported assets to make a simple gallery using a third party plugin. Most users already have a gallery plugin they like, so we publish the assets directly to the Media Library for easy compatibility.

1. Install the gallery plugin through the WP plugin manager.

2. Create a new gallery:

Wordpress - Gallery

3. Click ‘Upload’ and select your assets from the Media Library:

wordpress-pub5

Publish Gallery to WordPress

4. Create the gallery and the plugin will create a page for it. Click on the blue preview link to see your gallery:

wordpress-pub11

wordpress-pub7

 

Embed Collections

Use a short code of emcollection with a collectionid=”AVps3yMbnaYo4Ycgx5N” parameter.

The HTML and Images for the site a serves directly from EnterMedia. You can look at the HTML here:

https://github.com/entermedia-community/entermediadb-eml/blob/master/plugins/entermediadb/entermediadb.php

$collection_page_url = $cdn_prefix. / .$mediadbappid./services/module/asset/players/collections/embed/display/.$vars[collectionid]..html?oemaxlevel=2&entermedia.key=.$entermedia_key;

 

Collection