[TYPO3-mvc] f:cObject and non-cacheable action
André Steiling
steiling at elemente.ms
Mon Jan 23 10:35:32 CET 2012
I'm sorry, forget to add the versions:
T3 v4.5.10
extbase 1.3.1-devel
Fluid 1.3.0
I found a Forge report, http://forge.typo3.org/issues/12332:
"The "fix" in Extbase introduced a regression:
Cloning the cObject will break non-cacheable actions in otherwise
cacheable Plugins because convertToUserIntObject() has to be called on
the current cObject.
I'll revert the change in Extbase and apply your patch in Fluid!"
The fix isn't applied in Fluid, so it's still a unsolved bug? Could
anyone reproduce my problem?
My setup:
- ext_localconf.php
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'ProductOverlay',
array('Product' => 'overlay'),
array('Product' => 'overlay')
);
- controller action:
public function overlayAction() {
$distribution = $this->distributionRepository->readFromSession();
$this->view->assign('distribution', $distribution);
}
- Fluid template:
<f:cObject typoscriptObjectPath="lib.Tx_EXTNAME.addJsFooter">
new
Tx_EXTNAME.productShowDistributionOverlay('#tx-EXTNAME-product-overlay-{contentObjectData.uid}');
</f:cObject>
- TypoScript Setup:
page.includeJSFooterlibs.EXTNAME =
EXT:EXTNAME/Resources/Public/Javascript/tx_EXTNAME_script.js
page.jsFooterInline.20111025 = TEXT
page.jsFooterInline.20111025.data = register:Tx_EXTNAME_jsFooterInline
lib.Tx_EXTNAME.addJsFooter = LOAD_REGISTER
lib.Tx_EXTNAME.addJsFooter.Tx_EXTNAME_jsFooterInline.data =
register:Tx_EXTNAME_jsFooterInline
lib.Tx_EXTNAME.addJsFooter.Tx_EXTNAME_jsFooterInline.append = TEXT
lib.Tx_EXTNAME.addJsFooter.Tx_EXTNAME_jsFooterInline.append.current = 1
lib.Tx_EXTNAME.addJsFooter.Tx_EXTNAME_jsFooterInline.append.wrap =
(function(){|})();
More information about the TYPO3-project-typo3v4mvc
mailing list