Forums / Developer / Login & register on the same page

Login & register on the same page

Author Message

Anthony M.

Wednesday 17 December 2008 6:41:36 am

Hi,

i want to insert in my homepage 2 forms : one for login and one for register.
It works fine for the login but not for the register.

In my file user/login.tpl, i've inserted my register form like that :

{include uri="design:user/register.tpl"}

and the register.tpl is by default, but the variable '$content_attributes' is empty...

is it possible to do have these 2 forms in a page ?

Thanks a lot for your help

Anthony

Ivo Lukac

Thursday 18 December 2008 12:55:42 am

Hello Anthony

Afaik register.tpl uses variables which /user/register declares so including register.tpl in any other template will not work.

You can only add login.tpl to your register.tpl and always link to /user/register

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac