Template Override for /user/register

Author Message

Chad Paulson

Wednesday 06 February 2008 6:25:19 pm

Hello again,

I was wondering if it was possible to do one of two things:

1) Is it possible to keep the native /user/register while creating an alternative section or node override which will contain the same functionality yet display the register form in a different location / look and feel?

2) Is it possible to incorporate a custom register extension (by segmenting the kernel logic into its own action handler or similar method) into a custom template that can be placed anywhere.

Thanks in advance.

Chad

Bruce Morrison

Wednesday 06 February 2008 8:00:47 pm

Hi Chad

You can certainly override the templates used by the register view of the user module. I believe there are 2 main templates associated with user/register:
templates/user/register.tpl which includes templates/content/edit_attribute.tpl

user/register is an interesting piece of code in that it wraps the content editing in it's own and adds some of it's own processing by way of hooks.

When you talk about a a "custom register extension" what do you mean - if you simply want to change the why the user register forms look then you can do it via overriding templates/user/register.tpl

Maybe a big picture view of what you are trying to do will help find the right solution :)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Ross Kimbarovsky

Sunday 24 February 2008 3:50:22 pm

Bruce - thanks for responding. Chad and I work together.

We wonder whether we can allow registration via AJAX in a drop down window or from a modal, in addition to our normal registration page. When sending users to our site from an email, we want to direct them to a normal registration page. However, when on our site and users want to register, we'd prefer to have a drop down window (which we have for log-in already) or a modal so that new users can register right in the window without having to go to the separate registration page.

We assume that others have dealt with this issue and must have found some way(s) to solve it. Would appreciate any help.

Ross

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