A patch for TYPO3 to easily add tags just like categories to any element

Installs: 159

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 3

Type:typo3-cms-extension

12.0.2 2024-04-07 12:31 UTC

This package is auto-updated.

Last update: 2024-10-26 22:54:34 UTC


README

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('<table>', [
    'tags' => [
        'config' => [
            'type' => 'tag',
        ],
    ],
]);

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('<table>', '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