Documentation for the Freemarker functions provided by ccm-cms-assets-imagestep
git-svn-id: https://svn.libreccm.org/ccm/trunk@6106 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
7e4dab8465
commit
da9b2fe4e2
|
|
@ -1,8 +1,9 @@
|
||||||
### ccm-cms-assets-imagestep
|
# Freemarker functions for Image Attachments
|
||||||
|
|
||||||
Provides functions for dealing with image attachments of a content item.
|
Provides functions for dealing with image attachments of a content item.
|
||||||
|
|
||||||
Import path: `<#import "/ccm-cms-assets-imagestep.ftl" as Images>`
|
Import path
|
||||||
|
: `/ccm-cms-assets-imagestep.ftl"`
|
||||||
|
|
||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
|
|
@ -29,115 +30,35 @@ Example usage:
|
||||||
</#list>
|
</#list>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### getImageAttachments
|
## `getImageAttachments(item: Node): Sequence<Node>`
|
||||||
|
|
||||||
getImageAttachments(item)
|
Get the image attachments of the provided content item.
|
||||||
|
|
||||||
Get the image attachments of a content item
|
## `getImageId(image: Node): String`
|
||||||
|
|
||||||
##### Parameters
|
Gets the ID of the provided image.
|
||||||
|
|
||||||
`item` The content item.
|
## `getImageName(image: Node): String`
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
A sequence of the image attachments of the provided content item.
|
|
||||||
|
|
||||||
#### getImageId
|
|
||||||
|
|
||||||
getImageId(image)
|
|
||||||
|
|
||||||
Get the ID of the provided image.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The id of the image.
|
|
||||||
|
|
||||||
#### getImageName
|
|
||||||
|
|
||||||
getImageName(image)
|
|
||||||
|
|
||||||
Gets the name of the provided image.
|
Gets the name of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
## `getImageCaption(image: Node): String`
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The name of the image.
|
|
||||||
|
|
||||||
#### getImageCaption
|
|
||||||
|
|
||||||
getImageCaption(image)
|
|
||||||
|
|
||||||
Gets the caption of the provided image.
|
Gets the caption of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
#### `getImageSortKey(image: Node): String`
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The caption of the image.
|
|
||||||
|
|
||||||
#### getImageSortKey
|
|
||||||
|
|
||||||
getImageSortKey(image)
|
|
||||||
|
|
||||||
Gets the sort key of the provided image.
|
Gets the sort key of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
## `getImageWidth(image: Node): String`
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The sort key of the provided image.
|
|
||||||
|
|
||||||
#### getImageWidth
|
|
||||||
|
|
||||||
getImageWidth(image)
|
|
||||||
|
|
||||||
Gets the width of the provided image.
|
Gets the width of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
#### `getImageHeight(image: Node): String`
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The width of the provided image.
|
|
||||||
|
|
||||||
#### getImageHeight
|
|
||||||
|
|
||||||
getImageHeight(image)
|
|
||||||
|
|
||||||
Gets the height of the provided image.
|
Gets the height of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
## `getImageUrl(image: Node): String`
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The height of the provided image.
|
|
||||||
|
|
||||||
#### getImageUrl
|
|
||||||
|
|
||||||
getImageUrl(image)
|
|
||||||
|
|
||||||
Gets the URL of the provided image.
|
Gets the URL of the provided image.
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
`image` The image.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
The URL of the provided image.
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue