Christopher Lovejoy
posted this on June 15, 2010 15:31
getBannerLink has several versions. getBannerLink1, getBannerLink2, … getBannerLink5 All banners are manually uploaded photos for some sort of visual display for the content. Most of the time only getBannerLink or getBannerLink1 are used (they are the same thing).
getPhotoLink is for the photoset associated with the content.
<?cs each:photo = MS.activeContent.photos ?>
<div class="thumb">
<a href="<?cs call:getPhotoLink(photo, 800) ?>" rel="lightbox-ps" title="<?cs var:html_escape(photo.title) ?>"><img src="<?cs call:getPhotoLink(photo, "150x150") ?>" border="0" /></a>
</div>
<?cs /each ?>
These can be used at the same time. For example, we have a high res splash image at the top and then the photoset below it. For this example, lets assume we used the banner2 slot for the splash image.
<img src="<?cs call:getBanner2Link(MS.activeContent, "700x300") ?>">
<?cs each:photo = MS.activeContent.photos ?>
<div class="thumb">
<a href="<?cs call:getPhotoLink(photo, 800) ?>" rel="lightbox-ps" title="<?cs var:html_escape(photo.title) ?>"><img src="<?cs call:getPhotoLink(photo, "150x150") ?>" border="0" /></a>
</div>
<?cs /each ?>