5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 494 Views |
-
How do I remove the Domain(s) text from the Behavior tab

22 July 2011 at 2:19am
This is basically a repeat of this thread (but it's read only now, so I couldn't respond on it) - http://silverstripe.org/archive/reply/4363 that was never resolved.
In the CMS, I've used this $f->removeByName("Domain(s)"); to get rid of the domain(s) field in the Behavior tab, but I'm left with "Use this page as the 'home page' for the following domains: (separate multiple domains with commas)". I've tried removeByName for that, but it doesn't work. Anyone know how to get rid of this?
-
Re: How do I remove the Domain(s) text from the Behavior tab

22 July 2011 at 2:49am
try...
$f->removeByName("HomepageForDomain");
"Domain(s)" is the label, "HomepageForDomain" is the field name
-
Re: How do I remove the Domain(s) text from the Behavior tab

22 July 2011 at 3:07am
I tried these two variations, but no dice...
$f->removeByName("HomepageForDomain");
$f->removeFieldFromTab("Root.Behavior","HomepageForDomain"); -
Re: How do I remove the Domain(s) text from the Behavior tab

22 July 2011 at 3:17am
my bad - I didn't read the other thread...
try
$f->removeByName("HomepageForDomainInfo");
it's a literal field, check the getCMS fields for sapphire/core/model/SiteTree.php
-
Re: How do I remove the Domain(s) text from the Behavior tab

22 July 2011 at 3:22am
Awesome! That did the trick. Thanks for the help.
| 494 Views | ||
|
Page:
1
|
Go to Top |


