#Form_AddForm_PageType li.disabled { display: none; }
LeftAndMain::require_css('/mysite/css/cms.css');
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silverstripe-d...@googlegroups.com.
To post to this group, send email to silverst...@googlegroups.com.
Visit this group at http://groups.google.com/group/silverstripe-dev.
For more options, visit https://groups.google.com/d/optout.
I've Bern running a project against 3.x-dev for about 4 months and I don't recall it hiding pages that couldn't be created, in face I've used the HiddenPage interface to hide specific pages from the list...
I suspect this has been the behaviour for a while and I, personally, don't think it's a bug and is much less confusing to a user.
There will be a PR we can track down to get to the bottom of this, I'm sure. (But I'm out now so can't do it right now)
Dan
function objectIsHidden($object) {
// Needs to be an object.
if (!is_object($object)) return false;
if ($object instanceof HiddenClass) return true;
if ($object instanceof Object) return $object->isHidden();
return false;
}
Then again that creates another bottleneck of extensibility (this is part of the why I can appreciate Laravel's ability to setup service providers and register facades to call those providers, which can be overridden as needed by the dev).