Re: No inline when using prettyurls
Posted: Sat Jul 31, 2010 4:50 pm
When you use Pretty-URLs you have to specify a returnid-parameter as standard-value in the RegisterRoute-Part, e.g.:
If you like to let your Users determine the page, you can use something like this:
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);