Skip to content

Commit

Permalink
[TASK] allows integration of CSS Files with EXT: syntax (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenJuergens authored Jul 18, 2023
1 parent c19748a commit a6344dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Controller/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\PathUtility;
use Typoheads\Formhandler\AjaxHandler\AbstractAjaxHandler;
use Typoheads\Formhandler\Debugger\AbstractDebugger;
use Typoheads\Formhandler\Finisher\AbstractFinisher;
Expand Down Expand Up @@ -182,6 +183,7 @@ protected function addCSS(): void {
$file = strval($fileOptions['file'] ?? '');
if (strlen(trim($file)) > 0) {
$file = $this->utilityFuncs->resolveRelPathFromSiteRoot($file);
$file = PathUtility::getAbsoluteWebPath($file);

GeneralUtility::makeInstance(PageRenderer::class)->addCssFile(
$file,
Expand Down

0 comments on commit a6344dc

Please sign in to comment.