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

Add a preview URL for a resource #1564

Closed
abulte opened this issue Apr 6, 2018 · 0 comments
Closed

Add a preview URL for a resource #1564

abulte opened this issue Apr 6, 2018 · 0 comments

Comments

@abulte
Copy link
Contributor

abulte commented Apr 6, 2018

This a feature idea to be discussed.

First iteration

  • add a field "preview URL" field on the resource model, display it on resource form
  • if the field is present, a new button "preview" appears on the resource card — on click it opens the preview URL in a new tab, or an iframe somewhere on the site

This field could be used by resource owners to link to whatever tool/page they wish.

Next iterations

  • some harvesters can fill this field automatically: both CKAN and ODS have a preview page
  • geo.data.gouv.fr can also fill this field
  • some plugins can declare they can take care of the preview of a particular format (eg: udata-preview-csv) and fill the field automatically
  • some additional fields could be required to configure the preview plugin properly (eg: separator, encoding, column names...)
@noirbizarre noirbizarre self-assigned this Apr 12, 2018
noirbizarre added a commit that referenced this issue Apr 12, 2018
Added resource.preview_url and display it (fix #1564)
magopian added a commit that referenced this issue Nov 14, 2024
Follows up on #3189, fixes
[#1564](datagouv/data.gouv.fr#1564)

---------

Co-authored-by: maudetes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants