I have three questions regarding the Leaflet module and its widget:

  1. How can I Include more info in the popup (Another field of the content besides the title)?
  2. How can I make the popup smaller? it is very tall.

    Thanks!

Accepted answer

Hi geoma,

How can I Include more info in the popup

In a view or in the popup of the field display on nodes?

In fields you can use tokens for field display settings (there's a small token browser available). For example  [node:summary] or any field available on that node type.

In views you can either use a custom entity display (and <node entity> from setting), or some customized view field (combine things from node in one Custom text field and use that in your Description Content dropdown).

How can I make the popup smaller? it is very tall.

Yeah, it looks like some <p> blow up the size here - you could inspect which field causes that and strip some markup off via views UI field settings. Depends...

Comments

indigoxela's picture

Hi geoma,

How can I Include more info in the popup

In a view or in the popup of the field display on nodes?

In fields you can use tokens for field display settings (there's a small token browser available). For example  [node:summary] or any field available on that node type.

In views you can either use a custom entity display (and <node entity> from setting), or some customized view field (combine things from node in one Custom text field and use that in your Description Content dropdown).

How can I make the popup smaller? it is very tall.

Yeah, it looks like some <p> blow up the size here - you could inspect which field causes that and strip some markup off via views UI field settings. Depends...

Thanks! I managed it out with your help.

Turns out I had the Leaflet widget allows for a title and description.

This have a dropdown menu in the Leaflet settings within the view settings, which shows the fields you have activated in the fields area of the Views configuration.

 

thanks!

indigoxela's picture

Awesome, glad I could help. 👍