Including the user/register.tpl template

Author Message

Eirik Alfstad Johansen

Monday 12 January 2004 10:52:09 am

Hi,

As part of the order process, I'm trying to include the user/register.tpl template in another template. The problem is that the form fields for the user class attributes won't appear.

When I examine the user/register.tpl template, I can see that the form fields are displayed by looping over a var called $content_attributes. This is obviously a var that's accessible to the register view of the user module, but not the view of the module I'm trying to incorporate it into.

So, my question is this: How is the $content_attributes var passed to the user/register.tpl template in the first place? And how can I pass this var to the view of the module I'm using (preferably by editing the user/register.tpl template).

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Willie Seabrook

Thursday 15 January 2004 3:36:40 pm

Hi Eirik,

You will see on ~ line 290 in /content/attribute_edit.php there is the statement
$tpl->setVariable( 'content_attributes', $contentObjectAttributes );

and that content is obtained in /user/register.php by
$includeResult = include( 'kernel/content/attribute_edit.php' );

So in your custom module it may be as simple as doing that.

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