
이메일 마무리 도구의 이메일 템플릿에서 이 값을 사용할 수 있도록 새 파일 값을 추가하려는 사용자 정의 마무리 도구가 있습니다. 내 맞춤 마무리 작업에 다음과 같은 가치를 추가합니다.
$this->finisherContext->getFinisherVariableProvider()->add(
$this->shortFinisherIdentifier,
'jsonfile',
$yourCustomOptionPfad.$guidName.'.json'
);
이메일 템플릿에서 디버깅하면 값을 볼 수 있지만 템플릿에 {finisherVariableProvider.objects.MyCustomActionsave.jsonfile}을 추가하면 오류가 발생합니다.
Cannot access protected property TYPO3\CMS\Form\Domain\Finishers\FinisherVariableProvider::$objects
이메일 템플릿에서 맞춤 값을 얻는 데 도움이 되길 바랍니다! 남자 이름
답변1
찾은 솔루션:
$this->finisherContext->getFormRuntime()->offsetSet(...);