https://github.com/wapplersystems/t3-tag
Tag tca type like category
https://github.com/wapplersystems/t3-tag
typo3 typo3-cms-extension
Last synced: about 1 year ago
JSON representation
Tag tca type like category
- Host: GitHub
- URL: https://github.com/wapplersystems/t3-tag
- Owner: WapplerSystems
- Created: 2024-02-11T21:44:20.000Z (over 2 years ago)
- Default Branch: release/v12
- Last Pushed: 2024-12-13T11:39:30.000Z (over 1 year ago)
- Last Synced: 2025-04-20T19:23:45.534Z (about 1 year ago)
- Topics: typo3, typo3-cms-extension
- Language: PHP
- Homepage:
- Size: 199 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A patch for TYPO3 to easily add tags just like categories to any element.
The extension automatically adds the tag field to the following elements:
- tt_content
- fe_users
There are two ways to add the tag field to your own element:
By override file:
```
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('', [
'tags' => [
'config' => [
'type' => 'tag',
],
],
]);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('', 'tags', '', 'after:categories');
```
By TCA configuration:
```
'tags' => [
'config' => [
'type' => 'tag',
],
],
```
Please don't forget to add the field in your sql file:
`tags int(11) DEFAULT '0' NOT NULL`