[ckan-dev] Extending CKAN - login_form?

Michael Speth spethm at landcareresearch.co.nz
Thu Jan 26 23:49:26 UTC 2017


I am trying to use the login_form.html snippet on a page that is not login.html.   I am using the following code:

 {% snippet "user/snippets/login_form.html", action=c.login_handler, error_summary=error_summary %}

I understand that c is a context variable and most likely doesn't have the login_handler variable at all since its not the login.html page.

So I tried this:
{% snippet "user/snippets/login_form.html", controller='ckan.controllers.user:UserController', action='c.login_handler', error_summary=error_summary %}

Think that I need to use the UserController.  I have tried many combinations of the action parameter like /login_handler, login_handler, controller.login_handler, but nothing works.

Any ideas would be very much appreciated.

Thank you

--
Michael Speth
DevOps Computer Engineer
Landcare Research Consultant

________________________________

Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170127/b23f9702/attachment-0002.html>


More information about the ckan-dev mailing list