SuperAssets for SoundCloud is a Movable Type plugin that allows users to import and use SoundCloud tracks as sound assets in the Movable Type Asset Manager. It is part of the SuperAssets series of plugins from After6 Services LLC.
After downloading and uncompressing this package:
SoundCloud tracks work just like other Movable Type's assets and can be accessed via tags Asset, Assets, EntryAssets and PageAssets:
<mt:EntryAssets>
<mt:if tag="AssetType" eq="soundcloud track">
<div>
<strong><mt:AssetLabel escape="html"></strong>
<p><mt:AssetDescription escape="html"></p>
<img src="https://github.com/After6Services/mt-plugin-superassets-for-soundcloud/raw/master/<mt:AssetThumbnailURL>" width="100" height="100" alt="<mt:AssetLabel escape="html">" />
</div>
</mt:if>
</mt:EntryAssets>
Tracks can be filtered by class name:
<mt:Assets type="soundcloud_track" lastn="1">
...
</mt:Assets>
When the plugin imports a SoundCloud track, it saves the track's default 100x100px artwork image as the asset's thumbnail. A default image is used when the artwork is not available.
The plugin provides access to SoundCloud track thumbnails through the standard tag AssetThumbnailURL and allows downscaling the image via width or height attributes:
<img src="https://github.com/After6Services/mt-plugin-superassets-for-soundcloud/raw/master/<mt:AssetThumbnailURL width="80">" width="80" alt="<mt:AssetLabel escape="html">" />
There are a few extra asset properties accessible in templates:
soundcloud_track_user_name - track owner's nickname
Track by <a href="http://soundcloud.com/<mt:AssetProperty property="soundcloud_track_user_permalink">"><mt:AssetProperty property="soundcloud_track_user_name"></a>
By default, the plugin renders the default iframe-based HTML5 version of the player for tracks embedded via the rich text editor. To customize the player, add a blog or system-level template module called "SoundCloud Player" with your code. The asset object and its blog will be available in the template context.
This plugin has not been tested with any version of Movable Type prior to Movable Type 4.38.
Although After6 Services LLC has developed this plugin, After6 only provides support for this plugin as part of a Movable Type support agreement that references this plugin by name.
This plugin is licensed under The MIT License, http://www.opensource.org/licenses/mit-license.php. See LICENSE.md for the exact license.
SoundCloud Assets was originally written by Arseni Mouchinski with help from Dave Aiello and Jeremy King.
Copyright © 2012-2013, After6 Services LLC. All Rights Reserved.
SoundCloud is a trademark of SoundCloud Ltd.
SuperAssets is a trademark of After6 Services LLC.
Movable Type is a registered trademark of Six Apart Limited.
Trademarks, product names, company names, or logos used in connection with this repository are the property of their respective owners and references do not imply any endorsement, sponsorship, or affiliation with After6 Services LLC unless otherwise specified.