Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Add the tabs for panel of report


Reply

2 Posts   353 Views

Avatar
Romano

22 March 2012 at 9:30am Community Member, 13 Posts

Anybody can help me add the tabs for panel of reports?

In "cms\code\Report.php" for function getCMSFields I tried add this code:

      $fields = new FieldSet(
         new TabSet("Root",
            new Tab("Report", _t('Report.REPORT', "Report"),
                  new LiteralField('ReportTitle1', "<h3>{$this->title()}</h3>"),
            )
         )
      );

, but result is empty. Many thanks!

Silverstripe v2.4

Avatar
Romano

23 March 2012 at 5:44am Community Member, 13 Posts

My apologies, I forget about templates. Need to edit "ReportAdminForm" template.