[TYPO3-core] RFC: #11397: [Feature] Add class for render HTML header/footer for BE and FE
Steffen Kamper
info at sk-typo3.de
Sun Jun 28 21:57:15 CEST 2009
Hi,
i updated the patch as follows:
i removed the jsHandler complete, they are static (extOnReady is kept in
class because BE and extJsInclusion)
But for FE i added 3 objects:
jsInline
jsFooterInline
cssInline
They allow adding css and js with objects in a very easy way including
all the stdWrap possibilities. See the following example, which shows
also why jsHandler is no more needed, you can do such the way you like:
page.jsFooterInline {
10 = TEXT
10.value = var inlineVar2 = 888;
20 = COA
20.wrap = Ext.onReady(function() {|});
20 {
10 = TEXT
10.value = var myExtVar1 = 112;
20 = TEXT
20.dataWrap = var pageId = "{TSFE:id}"
}
}
with config.removeDefaultJS=external all the inline JS you define this
way will be written in a temporary file.
vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pageinclude_base_v2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090628/e8535b30/attachment-0003.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pageinclude_for BE_v2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090628/e8535b30/attachment-0004.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pageinclude_for FE_v2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090628/e8535b30/attachment-0005.txt
More information about the TYPO3-team-core
mailing list