Forums / Setup & design / user registration form

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}