FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
190 stars 229 forks source link

variable.register.set Viewhelper not available in Template with f:cobject #1757

Closed varioous closed 2 years ago

varioous commented 2 years ago

I register a variable in a Fluid template: <v:variable.register.set name="subCategoryHeader" value="{v:content.render(column: 2)}" /> After that i render a Plugin via f:cObject: <f:cObject typoscriptObjectPath="lib.searchresult" />

In the Fluid template of "lib.searchresult" the registered variable is only available the first time/call (when the cache is build). In the second following calls the variable {subCategoryHeader} is empty. When calling the page uncached everything is working correctly.

In this case the lib.searchresult is the Solr Result-Page. Here is the corresponding TypoScript: lib.searchresult < plugin.tx_solr_PiResults_Results

NamelessCoder commented 2 years ago

I'm afraid there's nothing I can do about that. The v:variable.register.set ViewHelper uses methods from TypoScriptFrontendController which are outside the scope of VHS. As such, the problem would be the same whether or not VHS or something else was used to set the variables.

You may want to report this to the TYPO3 core bugtracker. But it could be done this way by design.

NamelessCoder commented 2 years ago

Closing as "cannot solve".