Powermail ext 不包括日期选取器所需的 css 文件



TYPO3 7.6.15 电源邮件 3.18.0

日期选取器字段不会打开弹出日历。我已经缩小了原因,因为此功能不包含必要的CSS文件。我的设置有错误吗?如何自动包含它们?

这是我在 TS 设置中的内容:

plugin.tx_powermail {
view {
templateRootPaths >
templateRootPaths {
0 = {$plugin.tx_powermail.view.templateRootPath}
1 = fileadmin/template/mysite/powermail/Templates/
}
partialRootPaths >
partialRootPaths {
0 = {$plugin.tx_powermail.view.partialRootPath}
1 = fileadmin/template/mysite/powermail/Partials/
}
layoutRootPaths >
layoutRootPaths {
0 = {$plugin.tx_powermail.view.layoutRootPath}
1 = fileadmin/template/mysite/powermail/Layouts/
}
}
_LOCAL_LANG.default {
datepicker_format_date = d/m/Y
datepicker_format_time = H:i
datepicker_format_datetime = d/m/Y H:i
}
}

我发现使其正常工作的唯一方法是像这样手动添加它:

page.includeCSS {
file4 = EXT:powermail/Resources/Public/Css/Basic.css
}

在文档中有一个提示:

https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/Installation/Index.html#addbootstrapclassesandcsstopowermail

你应该

添加静态模板 添加基于引导程序的类和 CSS (powermail(

那里包括 css

您需要通过在 TypoScript 模板中设置常量来告诉 powermail 加载 JavaScript 库:

plugin.tx_powermail.settings.javascript.addAdditionalJavaScript = 1

有关详细信息,请参阅 https://docs.typo3.org/typo3cms/extensions/powermail/Faq/Index.html#datetimepickernotworking。

添加静态模板文件会导致 TypoScript

plugin.tx_powermail.settings.BasicCss =EXT:powermail/resources/public/css/basic.css

这应该加载所有内容。 日期选取器样式最初位于 https://github.com/einpraegsam/powermail/blob/develop/Resources/Private/Sass/_DatePicker.scss

最新更新