10,730
edits
(→Views: add home screen) |
|||
Line 31: | Line 31: | ||
* '''FormatString''' – If you use a non-string field as a source for the image (e.g. a lookup field), the string should look like folder_name{0}.png. {0} represents the target name (name of the lookup record, according to which the image is used. | * '''FormatString''' – If you use a non-string field as a source for the image (e.g. a lookup field), the string should look like folder_name{0}.png. {0} represents the target name (name of the lookup record, according to which the image is used. | ||
* '''HorizontalAlignment''' – NEAR aligns the image to the left side of the cell, FAR aligns image to the right side of the cell and CENTER aligns the image to middle of the cell. | * '''HorizontalAlignment''' – NEAR aligns the image to the left side of the cell, FAR aligns image to the right side of the cell and CENTER aligns the image to middle of the cell. | ||
* '''ImageQuery''' – For | * '''ImageQuery''' – For entity images, you can define the query for image location. | ||
** | ** As '''Image Data''', select the entity and field that contains your image (often, <code>Note.Document</code> or <code>{CurrentEntity}.Entity Image</code>). | ||
** | ** As '''Conditions''', add how to locate the correct image. The left side shows the fields on the entity selected as Image Data, on the right side you can either write a constant value, use a field of the current entity (in curly brackets), or use <code>{currentUserId}</code> to refer to the current app user. | ||
** | ** As '''Placeholder''', you may add a [[Images#Default_.2F_editable_images_in_views|placeholder image]] (in case the query does not return anything): enter the path and name of a [[Images|project image]] (for example <code>mydirectory.mypic.png</code>). | ||
:: [[File:Configure image query 2.png]] | |||
* '''Name''' – Name of the style. | * '''Name''' – Name of the style. | ||
* '''VerticalAlignment''' – NEAR aligns the image to the upper side of the cell, FAR aligns the image to the bottom of the cell, CENTER aligns the image to the middle of the cell. | * '''VerticalAlignment''' – NEAR aligns the image to the upper side of the cell, FAR aligns the image to the bottom of the cell, CENTER aligns the image to the middle of the cell. |