• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Self Registration module template variables
PostPosted: Tue Sep 18, 2018 6:44 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Aug 29, 2007 4:36 am
Posts: 237
Location: Sydney Australia
I created a tutorial a few years ago about building Self Reg templates: viewtopic.php?f=4&t=67650

I am now building a new site that needs a Self Reg registration template.

I used to use {$username->control} and {$password->control} etc. to build the templates, but they no longer work.

I have edited the default template using the {foreach from=$controls item=control} loop, but it would be much less code if I could use the variable directly.

Does anyone know if this is still possible?
Are the variables written differently now?

Cheers
Simon66


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Self Registration module template variables
PostPosted: Tue Sep 18, 2018 1:23 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7998
Location: Fernie British Columbia, Canada
The $controls variable in the Selfregistration registration template are an associative array of objects.

Look at the factory template that comes with the module.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting