Closed rhysgodfrey closed 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)
$frcommon_v1_metaData.GetBestImageUrlForContent($blogPost.ContentId, $blogPost.ContentTypeId)
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)