You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my goal would be to disable cache for a specific (custom) content element on a page.
But if I try to wrap a lib.contentElementWithHeader with COA_INT I get the following exception:
Trying to access array offset on value of type null in /ext/headless/Classes/ContentObject/JsonContentContentObject.php line 146
-> $data['colPos' . $element['colPos']][] = $element;
That's probably because I get no values line 218
-> $tmpValue = $cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
Hey guys,
my goal would be to disable cache for a specific (custom) content element on a page.
But if I try to wrap a lib.contentElementWithHeader with COA_INT I get the following exception:
Trying to access array offset on value of type null in /ext/headless/Classes/ContentObject/JsonContentContentObject.php line 146
-> $data['colPos' . $element['colPos']][] = $element;
That's probably because I get no values line 218
-> $tmpValue = $cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
Currently the code with a custom element example (using ext mask) looks like the following combined with an answer from
https://stackoverflow.com/questions/57505896/typo3-howto-disable-cache-for-specific-content-element-on-a-page
file ts\ContentElements\mask_example.typoscript:
tt_content.mask_example =< lib.contentElementWithHeader
tt_content.mask_example {
fields {
content {
fields {
header = TEXT
header {
field = header
}
title = TEXT
title {
field = tx_mask_title
}
}
}
}
}
tmp.mask_example < tt_content.mask_example
tt_content.mask_example >
tt_content.mask_example = COA_INT
tt_content.mask_example {
10 < tmp.mask_example
10 =< lib.contentElementWithHeader
}
Can't I wrap the element in your opinion? Or should I modify the code in JsonContentContentObject?
The text was updated successfully, but these errors were encountered: