Simple MODx way how to grab YouTube thumbnails and cache.
- getPlaceholder snippet (call can be replaced by related plugins e.g. http://rtfm.modx.com/extras/revo/fastfield)
- pThumb (or related plugin)
- MODx caching
- Zoom Crop to avoid black bars (16:9)
Simple MODx way how to grab YouTube thumbnails and cache.
<a href="http://youtu.be/[[getPlaceholder? &id=`[[+parent]]` &placeholder=`tv.video`]]" target="_blank"> | |
<img src="[[!pthumb? &input=`http://img.youtube.com/vi/[[getPlaceholder? &id=`[[+parent]]` &placeholder=`tv.video`]]/0.jpg` &options=`&w=480&h=270&zc=1`]]"> | |
</a> |