In TYPO3 8.5 I often used fluid conditions like this:
<f:if condition="{f:cObject(typoscriptObjectPath: 'lib.cookiepid')}">
In TYPO3 8.5 I did not define the lib, if I would not need it (depending on certain page pids f.eg.)
TYPO3 9.5 throws error:
#1540246570 TYPO3Fluid\Fluid\Core\ViewHelper\Exception
No Content Object definition found at TypoScript object path "lib.cookiepid"
In TYPO 9.5 I could only avoid this error, when I define this lib in TS.
what would be the best practice to avoid this error ? Is it possible without rewriting much code ?
I'd set it to the following if I wanted it to be false:
lib.cookiepid = TEXT