Created
September 18, 2014 18:57
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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