Forked from modmedia/muraDisplayExtendedAttributeImage.cfm
Last active
November 6, 2015 20:19
-
-
Save ronnieduke/a3a7ce6f6efbf64b564b to your computer and use it in GitHub Desktop.
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
<!--- Assuming you've created an extended attribute 'File' type called 'extAttributeImage' ---> | |
<!--- In a Mura Page Template ---> | |
#$.createHREFForImage(fileid=$.content('extAttributeImage'),size='myCustomSize')# | |
<!--- In a Mura Component ---> | |
#$.createHREFForImage(fileid=$.component('extAttributeImage'),size='myCustomSize')# | |
<!--- From a site extended attribute ---> | |
#$.createHREFForImage(fileid=$.siteConfig('extAttributeImage'),size='myCustomSize')# | |
<!--- In the context of an iterator ---> | |
#$.createHREFForImage(fileid=item.getExtAttributeImage(),size='myCustomSize')# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i tried this, i got an error:
The parameter fileID to function readMeta is required but was not passed in.
I have fixed this by changing to:
Maybe for others who are having the same error