Sometimes I need selfregistration forms for several groups. It is not comfortable to create several pages for that. For me it is better to create links to registration forms as follows:
Link to register to group1
Link to register to group2
Link to register to group3
Link to register to group4
As I did not find such a feature in the module I created UDT:
Code: Select all
if( isset( $params['group'] ) )
{
global $gCms;
$temp= $gCms->smarty->get_template_vars();
return $gCms->config['root_url']."/index.php?mact=SelfRegistration,cntnt01,default,0&cntnt01returnid=".$temp['content_id']."&cntnt01group=". $params['group'];
}
else return 'A group parameter is not set';
Now I can create links to the registration forms in template or content as follows:
Code: Select all
<a href={link_to_selfreg group=group1}>Register to group1</a>
<a href={link_to_selfreg group=group2}>Register to group2</a>
<a href={link_to_selfreg group=group3}>Register to group3</a>
<a href={link_to_selfreg group=group4}>Register to group4</a>
<a href={link_to_selfreg group=group5}>Register to group5</a>
If you know another way for this, please share.
Vilkis