Skip to content

Commit

Permalink
Merge pull request #21 from s2b/s2b-patch-1
Browse files Browse the repository at this point in the history
[TASK] Prepare release
  • Loading branch information
s2b authored Oct 5, 2023
2 parents 11dd0f3 + c2e586a commit 079fa09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,14 @@ editor:
- "%vite('EXT:sitepackage/Resources/Private/Css/Rte.css', 'path/to/manifest.json')%"
```
### IconProvider
## TYPO3 Icon API
Use the `SvgIconProvider` for icons processed by Vite. It works in Frontend and Backend.
For more details about the TYPO3 Icon API see the [documentation](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Icon/Index.html)
The extension includes a custom `SvgIconProvider` for the
[TYPO3 Icon API](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Icon/Index.html),
which allows you to register SVG icon files generated by vite. This works both in frontend
and backend context.

To use an icon along with `core:icon` ViewHelper, add the following to the `Configuration/Icons.php` file:
To register a new icon, add the following to the `Configuration/Icons.php` file:

```php
return [
Expand All @@ -274,3 +276,6 @@ return [
],
];
```

Then you can use the [core:icon ViewHelper](https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/typo3/core/latest/Icon.html)
to use the icon in your templates.
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'author' => 'Simon Praetorius',
'author_email' => 'simon@praetorius.me',
'state' => 'stable',
'version' => '1.4.0',
'version' => '1.5.0',
'constraints' => [
'depends' => [
'typo3' => '11.5.0-12.4.99',
Expand Down

0 comments on commit 079fa09

Please sign in to comment.