[ckan-dev] Passing package metadata as URL arguments
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>
>> 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?
>> Ted Strauss / Manager, Data Resources
>> McConnell Brain Imaging Centre / Montreal Neurological Institute
>> McGill University
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ckan-dev