5450 Posts in 1672 Topics by 1197 members
|Go to End|
19 March 2013 at 2:44am
i try to use a Part of the URL in the controller.
i have set up a new page-type and new controller.
i have set up a corresponding page -> everything is fine.
now i want to use something like http://domain/pagename/parameter
i added: Director::addRules(200, array('monatsbilder/$Month' => 'Monat_Controller'));
to my mysite/_config.php
my controller is called when i access the url with the parameter
but the "control Menu(1)" within the template looses all the Menu hierarchy.
it seems i loose the information on which page i am.
i must be missing something basic but i cannot figure that out. Please help.
This is SilverStripe 2.4!
|Go to Top|