Created
January 8, 2015 12:17
-
-
Save neokoenig/f4e103f81fa732f7ca5c to your computer and use it in GitHub Desktop.
evaluate?
This file contains 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
<cfif structkeyexists(evaluate(arguments.objectname), "featuredimage")> | |
<img src="#_getImagePath(src=evaluate(arguments.objectname).featuredimage)#"> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is an example of arguments.objectname? Usually in this context I would expect some kind of factory to return your object if you only have the name of it. e.g coldspring. Or, if it is just a struct, then it must exist in some kind of scope in coldfusion (
request
orapplication
orvariables
etc) in which case you could do<cfif structkeyexists(application[arguments.objectname], "featuredimage")>