[ckan-dev] Add user name and email to form

Funquist Tomas tomas.funquist at smhi.se
Mon Jan 19 15:10:20 UTC 2015


Hi!
I have to clarify my question. I know how to write a plugin and how to add extra fields. I have fields for contact information. What I want to do is to fill in the fields with the logged in users name and email so that he doesn't have to fill it in him self. How can I get hold of the users name and email so that I can fill it in at page load?
/Tomas

-----Ursprungligt meddelande-----
Från: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] För Joe Tsoi
Skickat: den 19 januari 2015 15:40
Till: CKAN Development Discussions
Ämne: Re: [ckan-dev] Add user name and email to form

You probably want to take look at the custom field tutorial here
(http://docs.ckan.org/en/latest/extensions/adding-custom-fields.html)

On 19 January 2015 at 13:09, Funquist Tomas <tomas.funquist at smhi.se> wrote:
> Hello!
>
> I want to add the users name and email to fields in the dataset form 
> when creating a new dataset. Is that possible?
>
> /Tomas
>
>
>
>
> _______________________________________________
> 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



More information about the ckan-dev mailing list