为什么powermail在安装扩展后立即包含css和jquery?

时间:2013-09-20 15:05:13

标签: jquery typo3

我在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扩展,我想禁用它。

1 个答案:

答案 0 :(得分: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
相关问题