SampleWebApp > Sample 3 : Using the media manager

You can query thumbnails from the media manager in your WCM templates, using the photoUrl Smarty function.

Loading a block displaying the last 5 created photos, as thumbnails.
<?php $this->loadWcmBlock('last5photos'10'wcmSampleSiteLast5Photos'); ?>