You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a lot of plugins, you can overwrite the default plugin settings with informations in {...}
would be good: adding map-center, zoom-level and marker-points like that.
it's only an idea or a question
The text was updated successfully, but these errors were encountered:
There is a content plugin as example from Astrid Günther (astridx) coordstomap which changes Coordinates in Articles to a link for an openstreetmap.
I change there the pattern the plugin is looking for to $pattern = "/{Openstreetmap ([0-9.]+) ([0-9.]+) ([0-9.]+) ([A-Z\-a-z]+) ([A-Z\-a-z]+)}/";
and the replacement to $replacement = '<div class="osm-map" data-lat=$1 data-lon="$2" data-zoom="$3"><div class="osm-point" data-lat="$1" data-lon="$2"><h3>$4</h3><p>$5</p></div></div>';
Now I can enter in an article {Openstreetmap $1 $2 $3 $4 $5}
in which $1 is latitude, $2 is longitude, $3 is zoomfactor, $4 is title and $5 text.
Like that I get directly your map inside of the article.
[I am not a dev. So I don't know how to do if title and text are more than one word]
in a lot of plugins, you can overwrite the default plugin settings with informations in {...}
would be good: adding map-center, zoom-level and marker-points like that.
it's only an idea or a question
The text was updated successfully, but these errors were encountered: