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.

eZ debug

Timing: Jan 18 2025 22:30:47
Script start
Timing: Jan 18 2025 22:30:47
Module start 'layout'
Timing: Jan 18 2025 22:30:47
Module start 'content'
Timing: Jan 18 2025 22:30:47
Module end 'content'
Timing: Jan 18 2025 22:30:47
Script end

Main resources:

Total runtime0.0168 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9375152.6250
Module start 'layout' 0.00560.0028 740.562539.4453
Module start 'content' 0.00840.0063 780.007889.3359
Module end 'content' 0.01460.0021 869.343834.3047
Script end 0.0167  903.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002716.1425140.0002
Check MTime0.00126.9654140.0001
Mysql Total
Database connection0.00074.271410.0007
Mysqli_queries0.002514.973330.0008
Looping result0.00000.076810.0000
Template Total0.00169.310.0016
Template load0.00095.106310.0009
Template processing0.00074.193210.0007
Override
Cache load0.00063.382410.0006
General
dbfile0.00031.618780.0000
String conversion0.00000.052640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs