Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » SideReport deprecated in 2.4?

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

Page: 1
Go to End
Author Topic: 329 Views
  • suntrop
    Avatar
    Community Member
    131 Posts

    SideReport deprecated in 2.4? Link to this post

    I am trying to get a simple report (sheduled pages) in the side bar (not the Report tab).

    But everything I try nothing works. In some cases the /admin/ won't show and displays a 404 instead and moastly I get this warning

    Warning: SS_Report::register(): 'BlogShedule' is not a subclass of SS_Report in /path/file.php

    Error comes when I add

    mysite/_config.php

    SS_Report::register("SideReport", "BlogShedule");

    I defined my class as in the docs

    mysite/code/CustomSideReport.php

    class CustomSideReport_BlogShedule extends SideReport {

    What is wrong? Is it still possible to add custom reports into the side bar?

    Hope for some help.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: SideReport deprecated in 2.4? Link to this post

    You should now just extend SS_Report and you don't need to register reports, that now happens automatically.

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: SideReport deprecated in 2.4? Link to this post

    Thanks, but it seems your wrong. Unless I put into my _config.php

    SS_Report::register('SideReport', 'CustomSideReport', 20);

    … it doesn't show up in the report drop-down.

    Anyway, now it's working fine

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: SideReport deprecated in 2.4? Link to this post

    Oh sorry, my points referred to 3.0.

    329 Views
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.