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.
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.
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.
Next step is to configure the publish destination in EnterMedia.
Go to Settings > Preferences > Publishing. Choose 'Wordpress CMS':
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. upload.php path for plugin's version 1.5 should be something like:
The Access Key field should be set to the value in your plugin settings:
Publishing to Wordpress
Now that you've configured the plugin and your EnterMedia, publishing is as easy as 1, 2...
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:
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.
Create a new post.
Add the shortcode where you want the video embedded passing in the asset id and dimensions if necessary (defaults are 100%):
Publish or preview to see your asset in the post:
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.
Install the gallery plugin through the WP plugin manager.
Create a new gallery:
Click 'Upload' and select your assets from the Media Library:
Create the gallery and the plugin will create a page for it. Click on the blue preview link to see your gallery:
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:
$collection_page_url = $cdn_prefix. '/' .$mediadbappid.'/services/module/asset/players/collections/embed/display/'.$vars