Powermail ext 不包含日期选择器所需的 css 个文件

Powermail ext doesn't include css files needed for date picker

TYPO3 7.6.15 Powermail 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

你应该

add the static template Add classes and CSS based on bootstrap (powermail)

其中包含css

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

这样的 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

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

plugin.tx_powermail.settings.javascript.addAdditionalJavaScript = 1

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