4-Roads / FourRoads.TelligentCommunity

A collection of plugins to extend the functionality of the Telligent Community platform
MIT License
6 stars 9 forks source link

MetaData Plugin: Allow Best Image to be selected by Content ID #22

Closed rhysgodfrey closed 8 years ago

rhysgodfrey commented 8 years ago

The Meta Data plugin allows an image to be found based on the current content item.

This functionality can also be useful to get an image to use when displaying content elsewhere on the site.

Update to allow a ContentId and ContentTypeId to be specified.

Usage: $frcommon_v1_metaData.GetBestImageUrlForContent($blogPost.ContentId, $blogPost.ContentTypeId)