1

在我下载并在 TYPO3 4.7 的后端安装 Powermail (2.0.9) 扩展后,文件立即加载到我的网站 ( www.africanfootprints.de ) 上。

这甚至发生在将 Powermail 添加到静态模板之前。

这些 CSS 在头部:

typo3conf/ext/powermail/Resources/Public/Css/CssFancy.css
typo3conf/ext/powermail/Resources/Public/Css/jquery.ui.theme.css
typo3conf/ext/powermail/Resources/Public/Css/jquery.ui.datepicker.css

而这些js在正文的末尾:

typo3conf/ext/powermail/Resources/Public/Js/jquery.ui.datepicker.min.js
typo3conf/ext/powermail/Resources/Public/Js/jquery.validationEngine-en.js
typo3conf/ext/powermail/Resources/Public/Js/jquery.validationEngine.js                          
typo3conf/ext/powermail/Resources/Public/Js/tabs.js
typo3conf/ext/powermail/Resources/Public/Js/powermail_frontend.js
typo3conf/ext/powermail/Resources/Public/Js/form.js 

因为我只想在联系页面上加载整个 Powermail 扩展,所以我不想禁用它。

4

1 回答 1

4

使用 Typoscript 禁用 CSS 和 JS:

page {
# Inlude JavaScript files
includeJSFooterlibs {
    powermailJQuery = 
    powermailJQueryUi = 
    powermailJQueryUiDatepicker = 
    powermailJQueryFormValidationLanguage = 
    powermailJQueryFormValidation = 
    powermailJQueryTabs = 
}
includeJSFooter {
    powermailForm = 
}

# Include CSS files
includeCSS {
    powermailJQueryUiTheme = 
    powermailJQueryUiDatepicker = 
}

}

有关更多 Typosrcipt 可能性,请参阅:

typo3conf/ext/powermail/Configuration/TypoScript/Main/setup.txt
于 2013-09-20T19:08:20.297 回答