Code: Select all
$returnid = 12345; // the page-ID your Module should be displayed in. note that the module overwrites everything else assigned to {content} on this page.
$defaults = array('returnid' => $returnid);
$this->RegisterRoute('/module\/(?P<item>[0-9]+)\/$/', $defaults);
Code: Select all
$returnid = $this->GetPreference('returnid', false);