Page 1 of 1

Email link to an internal page required

Posted: Tue Mar 23, 2010 11:26 am
by kmm2908
I want to issue a link to send out by email to one of our registration pages. The correct event is selected within cmsms by passing a session variable.

The address is something like: www.site/index.php/register

How do I pass in a variable to the page from an email?

Outside of cmsms I would use something like this:

Code: Select all

http://someaddress/index.php?page=register&var1=1
How do I do this inside cmsms?

Any ideas greatly received.

Re: Email link to an internal page required

Posted: Sat Apr 03, 2010 9:20 am
by irish
You are using pretty URLs so would need to register a route ($this->RegisterRoute) in your module.php page. it would be something like this if you module is named Register:

Code: Select all

$this->RegisterRoute('/[rR]egister\/(?P<varid>[0-9]+)\/(?P<returnid>[0-9]+)$/');
Then the URL would be like this:

Code: Select all

http://someaddress/register/1
See 'Make your module use clean URLs' on the Wiki:  http://wiki.cmsmadesimple.org/index.php ... ng_Modules