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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Working with subsite module


Go to End


355 Views

Avatar
VPull

Community Member, 58 Posts

28 April 2015 at 9:54pm

I just wanted to know is there any way to remove tab field from from main site and not from subsite.
I have created image upload tab field in Page.php file which I want to remove from HomePage.php. I tried with the code

$fields->removeFieldFromTab('Root.Head Image', 'HeadImage'); //remove slides gridForm
	$fields->removeByName("Head Image"); // remove slides tab

and it's work too, but it also removed tab from Home Page of subsite which I don't want.

thanks in advance