Powermail 中的添加、重命名或删除布局选项

use*_*665 3 typo3 fluid typoscript powermail typo3-7.6.x

在 powermail 文档中,它提到了一个字段的布局下拉列表:

管理员可以添加、删除或重命名某些条目。

如何在下拉菜单中添加布局选项?

您如何指定新选项将添加的类?

GNB*_*GNB 7

这是 Powermail 布局的 TS 配置。这将帮助您添加、删除和修改 Powermail 表单、页面和字段的布局。

TCEFORM.tx_powermail_domain_model_form{
        css {
            altLabels.layout1 = Event form
            altLabels.layout2 = Contact form
            removeItems = layout3,nolabel
        }
    }
}

TCEFORM.tx_powermail_domain_model_page{
    css {
        altLabels.layout1 = PERSÖNLICHE DATEN
        altLabels.layout2 = VERANSTALTUNGSDATEN
        altLabels.layout3 = OPTIONAL WEITERE
        # removeItems = layout1, layout2        
        # addItems {
        #         blue = Blue Form
        #         green = Green Form
        #      }
        #  }
    }
}

TCEFORM.tx_powermail_domain_model_field{
    css {
        altLabels.layout1 = Default

        addItems {
                layout4 = Field Title
                layout5 = Block Label
                layout6 = List Day
                layout7 = List Month
                layout8 = List Year
                layout9 = Inputbox with Left Label
                layout10 = Inputbox with Top Label
                layout11 = Label Note
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

希望,这将如何帮助您。你好!