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
Is your feature request related to a problem? Please describe.
I would like to insert the search form on two different places in our template with f:cObject. To seperat these two layouts from each other, it would be awesome to have access to the content object. Then I can call the view via: <f:cObject typoscriptObjectPath="tt_content.list.20.solr_pi_search" data="{template: 'myTemplate'}"/>
Describe the solution you'd like
Add to the controller the following line: $view->assign('contentObjectData', $this->configurationManager->getContentObject()->data);
Target versions
TYPO3 v12
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to insert the search form on two different places in our template with f:cObject. To seperat these two layouts from each other, it would be awesome to have access to the content object. Then I can call the view via:
<f:cObject typoscriptObjectPath="tt_content.list.20.solr_pi_search" data="{template: 'myTemplate'}"/>
and in my template Form.html
<f:if condition="{contentObjectData.template} == 'myTemplate'">
Describe the solution you'd like
Add to the controller the following line:
$view->assign('contentObjectData', $this->configurationManager->getContentObject()->data);
Target versions
TYPO3 v12
The text was updated successfully, but these errors were encountered: