sitegeist / base-url

Get absolute URL from TYPO3 site configurations and prepend it to relative URLs.
GNU General Public License v2.0
1 stars 1 forks source link

EXT Works on typo3 10.4. #1

Closed fischhase closed 2 years ago

fischhase commented 3 years ago

Hallo sitegeist,

I just wanted to report, that this extension works on TYPO3 10.4, if you change the ext_emconf.php:

<?php

$EM_CONF[$_EXTKEY] = array (
    'title' => 'Base URL',
    'description' => 'Determinates base URL from site configurations for scripts where no FE or BE context is avilable like commands or tasks',
    'category' => 'fe',
    'author' => 'Ulrich Mathes',
    'author_email' => 'mathes@sitegeist.de',
    'author_company' => 'sitegeist media solutions GmbH',
    'state' => 'stable',
    'uploadfolder' => false,
    'clearCacheOnLoad' => false,
    'version' => '1.1.1',
    'constraints' =>
    array (
        'depends' =>
        array (
            'typo3' => '9.5.0-10.9.99',
            'php' => '7.2.0-7.9.99'
        ),
    'conflicts' =>
        array (
        ),
    'suggests' =>
        array (
        ),
    ),
    'autoload' =>
    array (
        'psr-4' =>
        array (
            'Sitegeist\\BaseUrl\\' => 'Classes'
        )
    ),
);

Also inline notation is supported:

 <rx:shariff data="{
     url: '{data.slug -> baseurl:prepend(pageId: data.uid)}',
     ...
} ...
/>

Thanks for this viewhelper.

timdreier commented 3 years ago

I created a PR for this. Thanks for this great extension!