5102 Posts in 1520 Topics by 1116 members
|Go to End|
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?
22 July 2011 at 2:49am
"Domain(s)" is the label, "HomepageForDomain" is the field name
22 July 2011 at 3:07am
I tried these two variations, but no dice...
22 July 2011 at 3:17am
my bad - I didn't read the other thread...
it's a literal field, check the getCMS fields for sapphire/core/model/SiteTree.php
22 July 2011 at 3:22am
Awesome! That did the trick. Thanks for the help.
|Go to Top|