user registration form

Author Message

Tasha F.

Tuesday 05 July 2005 3:02:54 pm

I'm trying to override register.tpl to make nice user registration form.
I'm stack with block "login/password/confirm password" that represents user data type.
It's in one line and I can't figure out how to insert html code inside it.
How can I access elements of $ContentObjectAttribute:item ?

Thanks

laurent le cadet

Wednesday 06 July 2005 1:13:09 am

Hi,

try this :

http://ez.no/ez_publish/documentation/incoming/tutorial_using_user_register

Laurent

Tasha F.

Wednesday 06 July 2005 4:44:42 pm

Looks good
I'll check it out

Thanks!

Tasha F.

Wednesday 06 July 2005 6:35:38 pm

Everything was fine until I try if-else block.
In the override for register.tpl I try:

{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
{if eq( $ContentObjectAttribute:item.contentclass_attribute.id, 12 )}
    it is 12 <br />
{else}
    another id <br />
{/if}
{/section}

And I got empty page.

I made it more obvious:

{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
{if eq( 12, 12 )}
    it is 12 <br />
{else}
    another id <br />
{/if}
{/section}

But it didn't change anything.

What am I missing here?

Eivind Marienborg

Wednesday 06 July 2005 11:01:59 pm

What version of eZ are you on?

Try using section in stead:

{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
{section show=eq( 12, 12 )}
    it is 12 <br />
{section-else}
    another id <br />
{/section}
{/section}

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 21 2025 06:08:09
Script start
Timing: Jan 21 2025 06:08:09
Module start 'layout'
Timing: Jan 21 2025 06:08:09
Module start 'content'
Timing: Jan 21 2025 06:08:09
Module end 'content'
Timing: Jan 21 2025 06:08:09
Script end

Main resources:

Total runtime0.0209 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.0090 588.8984151.2109
Module start 'layout' 0.00900.0043 740.109436.6484
Module start 'content' 0.01330.0059 776.757894.2500
Module end 'content' 0.01920.0016 871.007833.9922
Script end 0.0208  905.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003114.9297140.0002
Check MTime0.00125.8099140.0001
Mysql Total
Database connection0.00094.513710.0009
Mysqli_queries0.005225.115230.0017
Looping result0.00000.095810.0000
Template Total0.00136.010.0013
Template load0.00104.680310.0010
Template processing0.00031.277910.0003
Override
Cache load0.00073.254110.0007
General
dbfile0.00178.053080.0002
String conversion0.00000.154040.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