[ckan-dev] Remove Embed Button

Adrià Mercader adria.mercader at okfn.org
Wed Feb 3 10:03:26 UTC 2016


Hi Natalia,

Sadly it looks like the Embed button is not wrapped in a template block:

https://github.com/ckan/ckan/blob/cec2ebfd9f15d681fe3c184b53e844c0a68c2672/ckan/templates/package/snippets/resource_view.html#L5:L12

So the only way of getting rid of it is to override the whole template
in your extension
(ckanext/yourextension/templates/package/snippets/resource_view.html)
and remove it from there.

Hope this helps,

Adrià




On 2 February 2016 at 16:37, Natalia Queiroz <queiroz.nati at gmail.com> wrote:
> Hello group,
>
> Does anybody knows how to remove the embed button from the resource view?
>
> Thanks,
>
> --
>
>
> Natália Oliveira
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list