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

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 15:53:54
Script start
Timing: Jan 18 2025 15:53:54
Module start 'layout'
Timing: Jan 18 2025 15:53:54
Module start 'content'
Timing: Jan 18 2025 15:53:54
Module end 'content'
Timing: Jan 18 2025 15:53:54
Script end

Main resources:

Total runtime0.6158 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.3438152.6250
Module start 'layout' 0.00500.0024 741.968839.4453
Module start 'content' 0.00740.6071 781.4141525.0313
Module end 'content' 0.61450.0013 1,306.44538.1563
Script end 0.6158  1,314.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5060160.0002
Check MTime0.00120.1945160.0001
Mysql Total
Database connection0.00070.119010.0007
Mysqli_queries0.571692.8305540.0106
Looping result0.00050.0768520.0000
Template Total0.589095.720.2945
Template load0.00240.391520.0012
Template processing0.586695.256620.2933
Template load and register function0.00010.019710.0001
states
state_id_array0.00070.121110.0007
state_identifier_array0.00070.113020.0003
Override
Cache load0.00200.3310160.0001
Sytem overhead
Fetch class attribute can translate value0.00120.191220.0006
Fetch class attribute name0.00090.140830.0003
XML
Image XML parsing0.00060.102420.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00250.4036170.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs