【问题标题】:Silverstripe: Remove Viewer Groups TabSilverstripe:删除查看器组选项卡
【发布时间】:2016-10-06 00:20:46
【问题描述】:

我正在尝试从 CMS 后端删除“ViewerGroups”标签。我试过了:

$fields->removeByName("Root.ViewerGroups");

$fields->removeByName("ViewerGroups");

但似乎都没有工作。有谁知道如何删除这个标签?

【问题讨论】:

  • ViewerGroup 标签出现在 CMS 中的什么位置?

标签: php content-management-system silverstripe


【解决方案1】:

你需要在现有的tab对象中访问它:

$fields->removeFieldFromTab('Root.Settings', 'ViewerGroups');

【讨论】:

    猜你喜欢
    • 2021-06-05
    • 1970-01-01
    • 1970-01-01
    • 2014-04-08
    • 1970-01-01
    • 1970-01-01
    • 2019-03-30
    • 2015-11-27
    • 1970-01-01
    相关资源
    最近更新 更多