Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to add custom fields in the pop-up #14

Closed
superknutsel opened this issue Oct 21, 2024 · 4 comments
Closed

option to add custom fields in the pop-up #14

superknutsel opened this issue Oct 21, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@superknutsel
Copy link
Owner

Allow the contents of the pop-up to be configurable.

Example a text field with tags (custom field names) and HTML that are rendered in the pop-up.
Also an option to turn the image off in the popup.

@superknutsel superknutsel added the enhancement New feature or request label Oct 21, 2024
@pjdevries
Copy link
Collaborator

pjdevries commented Nov 1, 2024

Example a text field with tags (custom field names) and HTML that are rendered in the pop-up.

Vervangt de inhoud van dit tekstveld de artikeltekst in de pop-up, of wordt die tesamen met de arikeltekst in de pop-up getoond en zo ja, hoe?

Inmiddels als volgt geimplementeerd:

  • In Donkey Map kan op het Marker tabblad de naam van een custom field worden gespecificeerd.
  • Als Donkey Map een veld met bovengenoemde naam in het artikel aantreft, vervangt die alle namen van custom fields die voorkomen in de inhoud van dat veld, met de inhoud van de betreffende custom fields. Die namen moeten als volgt in de tekst zijn opgenomen: {{naam_van_het_custom_field}}.
  • Het eindresultaat wordt onderaan de pop-up content toegevoegd.

@pjdevries
Copy link
Collaborator

pjdevries commented Nov 1, 2024

Also an option to turn the image off in the popup.

Is dat een alles of niets instelling op het Marker tabblad, die van toepassing is op de gehele map?

Inmiddels als volgt geimplementeerd:

  • Donkey Map heeft op het Marker tabblad een radio button waarmee weergave van artikelafbeelding voor de gehele map kan worden in- of uitgeschakeld.
  • Donkey Map verwacht in het artikel een radio button custom field met de naam show-article-image-in-map-marker-pop-up, waarmee weergave van artikelafbeelding voor dat specifieke artikel kan worden in- of uitgeschakeld. Bestaat dat veld niet, dan wordt aangenomen dat weergave is ingeschakeld.

@superknutsel
Copy link
Owner Author

Also an option to turn the image off in the popup.

Is dat een alles of niets instelling op het Marker tabblad, die van toepassing is op de gehele map?

Inmiddels als volgt geimplementeerd:

* Donkey Map heeft op het Marker tabblad een radio button waarmee weergave van artikelafbeelding voor de gehele map kan worden in- of uitgeschakeld.

* Donkey Map verwacht in het artikel een radio button custom field met de naam `show-article-image-in-map-marker-pop-up`, waarmee  weergave van artikelafbeelding voor dat specifieke artikel kan worden in- of uitgeschakeld. Bestaat dat veld niet, dan wordt aangenomen dat weergave is ingeschakeld.

Heeft het radio button custom field nog requirements qua settings? Als het veld nu bestaat lijkt het of de hele link van de marker niet meer werkt.

@superknutsel
Copy link
Owner Author

Alles lijkt top te werken. Dus closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants