3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
252 stars 141 forks source link

[Question]: How to customize the popup title without changing the layer name #4604

Open mariemgeo opened 1 month ago

mariemgeo commented 1 month ago

What is the question? (in English)

Hello,

In my project, nearly all the layers are queryable via popups, and these layers overlap. Therefore, multiple popups are displayed when clicking on the map.

I would like to change the way the layer name is displayed in the popup to highlight the layer name and create a separation between the popups.

I tried to include HTML tags in the layer title in the layer settings of the Lizmap plugin. It works, and the layer title appears in bold and red in my popup, but the raw tags show up in the name of my layer in the Lizmap layer manager.

lizmap layer setting image

lizmap popup image

lizmap layer name image

Is there another way to configure the popup title?

Thank you in advance for your response.

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : safe * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Windows

Browsers

Firefox

Browsers version

Firefox 128.0

Relevant log output

No response

nboisteault commented 1 month ago

You should use some CSS (doc)

.lizmapPopupTitle{color:red;}
mariemgeo commented 1 month ago

Hello,

Thank you for your response.

Is it possible to place the CSS in the project's media folder, or does it need to be in the global media folder of Lizmap?

github-actions[bot] commented 1 week ago

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎