1

Is it possible to create sub (or nested) tabs in the backend of October CMS?

I can create regular tabs like this:

tabs:
  fields:
    layout:
      label: Layout
      description: Choosed between a boxed or wide layout.
      type: dropdown
      options:
        stretched: Stretched
        boxed: Boxed
      span: left
      tab: Site
    smooth_scrolling:
      label: Smooth Scrolling
      commentAbove:  Enable or disable smooth scrolling on Windows desktop PCs.
      type: switch
      span: left
      default: true
      tab: Blog

What I would like to do is create nested tabs underneath a particular tab (for instance, using secondaryTabs underneath the Site tab).

Is this possible? If so, any idea how to do it?

Thanks.

4

1 回答 1

0

目前无法使用默认的 OctoberCMS yaml 文件。

这有点小技巧,但您可以在控制器 .htm 文件中创建选项卡,然后在选项卡面板中呈现表单字段。

您可以分别呈现每个选项卡级别的字段:

$this->formRender(['section' => 'outside'])
$this->formRender(['section' => 'primary'])
$this->formRender(['section' => 'secondary'])
于 2017-01-30T05:09:26.697 回答