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   362 Views

Avatar
Romano

Community Member, 13 Posts

22 March 2012 at 9:30am

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

Community Member, 13 Posts

23 March 2012 at 5:44am

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