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.

Archive /

Our old forums are still available as a read-only archive.

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

Removing text content from Tabs in CMS


Go to End


1870 Views

Avatar
RWasher

Community Member, 1 Post

7 December 2008 at 12:07am

Edited: 07/12/2008 12:09am

Woo my first thread!

I'm wondering how to remove text from the tabs in the CMS. I managed to find the names of all the tabs by doing a print_r of getCMSFields() and hunting for name attributes which allowed me to remove various fields, but all the text (Literal Fields?) have blank name's..

As an example, I use the below code to remove the HomepageForDomain field in the Behaviou tab:

$fields->removeFieldFromTab('Root.Behaviour','HomepageForDomain');

But I am left with the now-superfluous text: Use this page as the 'home page' for the following domains: (separate multiple domains with commas), which I have no idea how to remove. Can anyone shed some light on this?