Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » ModelAdmin Back button and Breadcrumbs not working

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

Page: 1
Go to End
Author Topic: 343 Views
  • Urug
    Community Member
    4 Posts

    ModelAdmin Back button and Breadcrumbs not working Link to this post

    class NewsAdmin extends ModelAdmin {

    static $menu_title = "News";

    static $url_segment = "news";

    static $url_rule = '$Action/$ID';

    static $managed_models = array('News');

    All is working except the Back button and Breadcrumbs navigation on admin page. I realized that cause of the problem is probably wrong url address of "add new/edit" page. The url of the "add new" page should be
    I quess, but it's
    As you can see, the name of the model is appended after NewsAdmin::$url_segment.
    The back button (or the breadcrumb) then links to:
    instead of

    any help?

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.