Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created September 18, 2014 18:57
Show Gist options
  • Save mhulse/1aab2d8ee7e7559288a1 to your computer and use it in GitHub Desktop.
Save mhulse/1aab2d8ee7e7559288a1 to your computer and use it in GitHub Desktop.
Caché 2009.1 - NEWSCYCLE Solutions: DTI Lighting 7.7.x: Get picture meta method.
<script language="cache" method="meta" arguments='pictureObj:dt.cms.schema.CMSPicture=-1, item:%String=""' returntype="%String" procedureblock="1">
/**
* Get picture meta.
* Formerly: pick
*
* @param object
* @return string
*/
set return = ""
if ($isobject(pictureObj) && $length(item)) {
set return = ##class(dt.cms.support.Rules).getPictureItemFromCMSPictureOBJ(pictureObj, item)
}
quit return
</script>
<csp:comment>
<dti:story:image:caption field="990pxw" property="caption" table="fileheader" />
</csp:comment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment