From 7a4c5f8f1be23f4d128a11bd5a774f0b0350f60b Mon Sep 17 00:00:00 2001 From: rmartin Date: Tue, 21 May 2024 10:46:15 +0200 Subject: [PATCH] update tips with thumbnail creation --- source/publish/lizmap_plugin/attribute_table.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/publish/lizmap_plugin/attribute_table.rst b/source/publish/lizmap_plugin/attribute_table.rst index fd9a73f..285fe70 100644 --- a/source/publish/lizmap_plugin/attribute_table.rst +++ b/source/publish/lizmap_plugin/attribute_table.rst @@ -145,17 +145,16 @@ in a new browser tab. If the media points to an image (a JPG or PNG file), you could add new column showing a small image preview of the source image by adding a new **virtual field** in your vector layer, -with this **expression**. In the example below, the field containing the media path is ``media_path`` +with this **expression** (which create an image with a data attribute containing the image path and a CSS class ``data-attr-thumbnail``). In the example below, the field containing the media path is ``media_path`` and the virtual field is named ``vignette``: .. code-block:: concat( - '' + '" src="/themes/default/css/img/logo_footer.png" style="height:60px;">' ) The result will look like: