Function PropertyMedia
Generates a html image for the provided property media
PropertyMedia([MEDIA],[SIZE],[TYPE],[WIDTH],[HEIGHT],[INDEX],[STYLE],[ALT],[TITLE],[ID],[BORDER],[PRIVATE_URL])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | string | required | n/a | MEDIA | The property media |
2 | string | optional | W | SIZE | The size: "T" = Thumbnail, "W" = Website, "O" = Original Hi-Res |
3 | string | optional | P | TYPE | The type: "P" = Photo, "F" = Floorplan |
4 | integer | optional | n/a | WIDTH | The required width in pixel size |
5 | integer | optional | n/a | HEIGHT | The required height in pixel size |
6 | integer | optional | n/a | INDEX | The nth index to find starting at 1 |
7 | string | optional | n/a | STYLE | The image style |
8 | string | optional | n/a | ALT | The image alt |
9 | string | optional | n/a | TITLE | The image title |
10 | string | optional | n/a | ID | The image id |
11 | integer | optional | 0 | BORDER | The image border size |
12 | boolean | optional | false | PRIVATE_URL | Whether using a private or public URL |
Returns
The image for the property media
Examples
Example for photo 1 defaulting to photo 1 web size
{{PropertyMedia(ALIAS.PROPMEDIA,"W","P",1920,1080,1)}}
Example for photo 6 with all parameters
{{PropertyMedia(ALIAS.PROPMEDIA,"W","P",1920,1080,6,"","","","",0)}}
Example for photo 1 web size with custom text
{{PropertyMedia(ALIAS.PROPMEDIA,"W","P",1920,1080,1,"","","Photo of the main building","This is a photo of the main building",0)}}