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.

Archive

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

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

Removing text content from Tabs in CMS


Reply

1214 Views

Avatar
RWasher

7 December 2008 at 12:07am (Last edited: 7 December 2008 12:09am), Community Member, 1 Post

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?