how to call registration page from a link in home page..?

Author Message

Satheesh R

Tuesday 14 November 2006 11:19:59 pm

Dear all,
in my home page a link("Register"), when a user clikes on this, a page for registration should open. how to achieve this...?

The Class is Users - id is 4,
even i created section and i made override file too but it gives an empty page even its not giving "Unavailable objects"

please anyone guide me how to create override file and how can i achive the above..?

Thanks & regards
Satheesh R

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 12:28:09 am

Hi Satheesh

The answer is the same as kracker gave you in your previous post here:
http://ez.no/community/forum/developer/how_to_call_the_created_user_registration_from_in_user_side

The href of your link needs to go to {'/user/register'|ezurl()}. By default this will call up the tempate templates/user/register.tpl.

There should be no need for any sections. You can certainly create an override for the register template but I would first try without.

If you have problems with that please tell us exactly what you are doing. I think you should first do without any sections or override as this makes any troubleshooting much easier.
If it works fine without any override and you have problems with the override please post the code of your override template here.

Greetings from Luxembourg

Claudia

Satheesh R

Wednesday 15 November 2006 2:36:55 am

Hi Claudia Kosny,
thanks for the solution
Still i'm facing some problem(i'm new to eZ).

I want to create a login page for users in the user side itsconsists of following
USER SIDE:
--------------
1.login :---------
2.password:--------
3.login(button)
4.Remember me (checkbox)
5.Register(a link - href) [for new users)

Admin Side
-------------
Modified the default class "User" with two more fields.

Now i want to call this class (as a registration form) in user side. when a new user clicks the Register link.

Pls let me know how to do this.. whether i have to create any sections or directly i can call.

Thanks and regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 2:50:13 am

Hi Satheesh

you really should just need a link like this:

<a href={'/user/register'|ezurl()}>Click to register</a>

If this does not work, please tell me exactly what is happening when you click on this link.

Claudia

Satheesh R

Wednesday 15 November 2006 3:09:14 am

Hi Claudia Kosny,

i did the same but I'm getting a blank page.

Thanks & regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 10:58:51 am

Hi Santheesh

That looks like you use an override which does not fetch any content. Please enable full debug output, clear your cache and have a look at the list of used templates. Also check whether you get any error messages.

If you use an override, remove it for now, clear the cache and try again. Then compare the original register.tpl with your override and check what might be going wrong.
If you get any error messages in your debug output, try to fix the errors first on your own. If you have any trouble, post the errors here.

Regards

Claudia

Satheesh R

Monday 20 November 2006 4:07:28 am

Hi Claudia Kosny
Still i'm facing the same problem, So i tried in a new setup, I installed a plain site. by default it has a login registration page, it works well. later i made a new pagelayout.tpl file and override the satandard.

The new pagelayout.tpl is consits of following lines
"--------- This is the test------------"}
<HTML>
</BODY>
<a href={'/user/register'|ezurl()}>Click to register</a>
<blockquote> </blockquote>
</BODY>
</HTML>

but this "Click to register" anchor is not working while clicking it dispalyes a blank page only. please tell me how to get or call the default registration from by clicking the above anchor.

Thanks and Regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Monday 20 November 2006 5:50:14 am

Hi Satheesh

Sorry, I don't know what is going on there. You have an error in your html (the opening <body> tag must not have a slash) but I can't image that this causes this problem.

Some things to check:
Enable the original pagelayout again and click there on the link for registering a user.
Make a note of the url that is called by this link. Now go back to your test pagelayout and make a note of the link that is called there for registering a user. What is the difference between them?
Also enable full debug output so you get a list with the used templates. Try once with the original link and once with the new link and check which template is called for user registration. Please post the full path of this template (as found in this list).

Have a look at the [SiteAccessSettings] block of your site.ini for the siteaccess you use. Make sure that user/register is listed in the AnonymousAccessList[], like this (this is copied from the main site.ini):

# A list of module or module/views that don't require user login
AnonymousAccessList[]
AnonymousAccessList[]=user/register
AnonymousAccessList[]=user/success
AnonymousAccessList[]=user/activate
AnonymousAccessList[]=user/forgotpassword

Good luck

Claudia

Satheesh R

Tuesday 21 November 2006 4:29:30 am

hi Claudia Kosny,

Thanks for the solutions, i did the a fresh setup as u said and i followed all the default steps, now its working well. thanks a lot for the solutions

-
Satheesh R

Thanks and Regards
R Satheesh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.