Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Using URL Parameter

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 332 Views
  • freakout
    Community Member
    49 Posts

    Using URL Parameter Link to this post

    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!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.