Function PropertyMediaUrl
Generates a URL for property media
PropertyMediaUrl([MEDIA],[SIZE],[TYPE],[INDEX],[PRIVATE_URL],[BRANCH])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 | INDEX | The nth index to find starting at 1 |
| 5 | boolean | optional | false | PRIVATE_URL | Whether using the public or private URL |
| 6 | string | optional | null | BRANCH | The branch |
Returns
The URL for the property media
Examples
Example to output photo URL for a property
{{PropertyMediaUrl(ALIAS.PROPMEDIA,"W","P",1)}}Example to output floorplan URL for a property
{{PropertyMediaUrl(ALIAS.PROPMEDIA,"W","F",1)}}
