本文整理汇总了PHP中SiteTree::getSettingsFields方法的典型用法代码示例。如果您正苦于以下问题:PHP SiteTree::getSettingsFields方法的具体用法?PHP SiteTree::getSettingsFields怎么用?PHP SiteTree::getSettingsFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SiteTree
的用法示例。
在下文中一共展示了SiteTree::getSettingsFields方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSettingsFields
public function getSettingsFields()
{
$fields = parent::getSettingsFields();
// Hide ShowInSearch checkbox if we don't have a search
$fields->removeByName('ShowInSearch');
return $fields;
}
示例2: getSettingsFields
/**
* @return FieldList
*/
public function getSettingsFields()
{
/** @var FieldList $fields */
$fields = parent::getSettingsFields();
$fields->removeByName('ShowInSearch');
return $fields;
}
示例3: getSettingsFields
function getSettingsFields()
{
$fields = parent::getSettingsFields();
$fields->insertAfter(new CheckboxField('Anchor'), "ShowInSearch");
return $fields;
}
示例4: getSettingsFields
function getSettingsFields()
{
$fields = parent::getSettingsFields();
$fields->addFieldToTab('Root.Settings', new CheckboxField('CustomerView', 'Show in registered menus?'), 'ShowInSearch');
return $fields;
}
示例5: getSettingsFields
function getSettingsFields()
{
$fields = parent::getSettingsFields();
$fields->addFieldToTab("Root.Settings", new CheckboxField('ShowPageInFooter'));
return $fields;
}