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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Add the tabs for panel of report


Go to End


2 Posts   1062 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.