[pmwiki-users] Using attached file names in a pagelist or similar

Simon nzskiwi at gmail.com
Sat Feb 1 19:00:41 PST 2020


These are great ideas, but don't some the problem of replacing manual
markup with a list generated when the page is viewed.

This is what am thinking of is for example
(:pagelist filename=*tararua* fileext=gpx fmt=#generateurlmarkup :)
[[#generateurlmarkup]]
(:template each:)
* [[https://example.com?gpx={=$Filename}.{=$Fileext} | {=$Filename}]]
[#generateurlmarkup]]


On a related but different point it would be fantastic if ape could display
gpx/kml tracks on OpenStreetMap tiles
<https://operations.osmfoundation.org/policies/tiles/>, possibly using
https://leafletjs.com/index.html or similar

On Sun, 2 Feb 2020 at 13:21, Petko Yotov <5ko at 5ko.fr> wrote:

> On 01/02/2020 23:26, Simon wrote:
> > I have go a number of uploaded files on a wiki page that when clicked
> > on I
> > want to open with a specific external website with the file name as a
> > parameter.
> >
> > e.g. https://example.com/displaygpx=example.gpx
> >
> > Has anyone any suggestions on how this could be achieved?
>
> You mean besides writing the actual links?
>
> InterMap prefix? In Site.InterMap:
>    Gpx:    https://example.com/displaygpx=
>
> then in a wiki page
>    Gpx:example.gpx
>    [[Gpx:example.gpx|click here to view a GPX whatever it might be]]
>
>
> Include section with a parameter?
>    [[#gpxlink]]
>    [[https://example.com/displaygpx={$$f}|Review {$$f}]]
>    [[#gpxlinkend]]
>    (:inlcude #gpxlink f=example.gpx :)
>
>
> Custom markup adapted from (:attachlist:)
>    [...someone needs to write it...]
>
> BTW if it may be possible to add to Cookbook:Ape a way embed the maps
> with the traces in your page if the external service allows this.
>
> Petko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20200202/d3d710c5/attachment.html>


More information about the pmwiki-users mailing list