[ckan-dev] Passing package metadata as URL arguments

Ted Strauss ted.strauss at gmail.com
Wed Aug 30 15:40:31 UTC 2017


Thanks for the tip Ian.

ᐧ

On Tue, Aug 29, 2017 at 1:54 PM, Ian Ward <ian at excess.org> wrote:

> This isn't built in to CKAN but you can create this effect by overriding
> the form template in an extension and using e.g. request.GET.title as the
> default value for title when there's no data for the form.
>
>
>
> On Tue, Aug 29, 2017 at 1:30 PM, Ted Strauss <ted.strauss at gmail.com>
> wrote:
>
>> Hi CKAN Dev:
>> I have use-case where I'd like to give users a head start on populating
>> the fields for a new dataset or a new resource. Passing the values through
>> the URL is a flexible way to do this.
>> For example this URL
>> https://my.ckan.org/dataset/new?title='the title'&author=johndoe
>> would copy the title and author values directly into the corresponding
>> fields on the new dataset page.
>>
>> Does CKAN support this, or has that been tried before?
>>
>> Thanks
>> Ted
>>
>>
>>
>> Ted Strauss / Manager, Data Resources
>> McConnell Brain Imaging Centre / Montreal Neurological Institute
>> McGill University
>>>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170830/ce105424/attachment-0003.html>


More information about the ckan-dev mailing list