geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
488 stars 261 forks source link

add a urlattr filter to html output #1606

Closed pvgenuchten closed 2 months ago

pvgenuchten commented 6 months ago

to extend user interaction in the html output we need a mechanism to replace url attributes in the self url with updated values, for example sortby=title. In pycsw i recently added url parsing as a jinja macro. However, since this is quite generic I think it would be better to create a filter for it at the python side, eg

<a href={{ urls.self | urlattr("sortby","title") }}>Sort</a>

the urlattr filter would parse the querystring and add or replace the attribute with the given value

curious to hear your thoughts and tips on how to best implement

github-actions[bot] commented 3 months ago

This Issue has been inactive for 90 days. As per RFC4, in order to manage maintenance burden, it will be automatically closed in 7 days.

github-actions[bot] commented 2 months ago

As per RFC4, this Issue has been closed due to there being no activity for more than 90 days.