Images: Difference between revisions

Jump to navigation Jump to search
685 bytes added ,  18 March 2020
Line 112: Line 112:
=== Default / editable images in views ===
=== Default / editable images in views ===


If you use images in views, and there are some records that do not have any image in their Note, you can display a default (placeholder) image instead, so that there is not an empty slot in the view.
If you use images in views, and there are some records that do not have any image in their Note, you can display a default (placeholder) image instead, so that there is not an empty slot in the view. The placeholder is configured in image styles.
# Edit a view.
# Click '''Edit Styles''' to open the [[Style editor]].
# Select an image style and click the '''ImageQuery''' parameter.<br>[[File:Configure image query.png]]
# In the '''Placeholder Image''' field, enter the file name of the file, including folder, separated by dots.
# Click OK to close the image query. Save and close the style editor. Save the view.
# Select '''[[Offline HTML]]''' from the '''Project''' menu.
# Click '''New Folder''' to create the folder ''myfolder'' from the example above.
# Add the file ''mypic.png'' into the folder.
# Click '''Save'''.
# Publish the project and verify the behavior in the app.


Also, it is possible to set editable images in views. It does not mean that you can edit the image, but you can edit the field, that is represented by it. For example, an option set may be displayed as image, rather than its value as text. And similarly to editable fields, you can change the value with the images.
Also, it is possible to set editable images in views. It does not mean that you can edit the image, but you can edit the field, that is represented by it. For example, an option set may be displayed as image, rather than its value as text. And similarly to editable fields, you can change the value with the images.

Navigation menu