Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Confused about 2.4 / nested Urls / display DataObject

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

Page: 1
Go to End
Author Topic: 1169 Views
  • rob.s
    Community Member
    78 Posts

    Confused about 2.4 / nested Urls / display DataObject Link to this post

    Hi Forum,

    here is my issue:
    SS 2.4.0 rc3

    Nested URls are enabled.
    On a custom Pagetype there is a method 'details', that should display a DataObject Record.

    Because of using nested URLs the URL can be:

    inside the Controller

    public function details()

    //$UrlSegment = Director::URLParam('ID');
    // Line above does not work - content of $URLSegment is 'level3'

    // the following line works - but why ?
    $UrlSegment = $this->getRequest()->param('ID');



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.