{"id":17000907,"url":"https://github.com/ichhabrecht/t3tags","last_synced_at":"2025-04-12T06:12:37.914Z","repository":{"id":50156584,"uuid":"174751542","full_name":"IchHabRecht/t3tags","owner":"IchHabRecht","description":"Generate tag fields for every record type","archived":false,"fork":false,"pushed_at":"2023-06-01T10:17:29.000Z","size":74,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:12:32.751Z","etag":null,"topics":["api","backend","tags","typo3","typo3-cms","typo3-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IchHabRecht.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-09T22:09:47.000Z","updated_at":"2022-02-08T07:59:43.000Z","dependencies_parsed_at":"2022-09-13T00:32:16.953Z","dependency_job_id":null,"html_url":"https://github.com/IchHabRecht/t3tags","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchHabRecht%2Ft3tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchHabRecht%2Ft3tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchHabRecht%2Ft3tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IchHabRecht%2Ft3tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IchHabRecht","download_url":"https://codeload.github.com/IchHabRecht/t3tags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525138,"owners_count":21118619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backend","tags","typo3","typo3-cms","typo3-extension"],"created_at":"2024-10-14T04:13:20.208Z","updated_at":"2025-04-12T06:12:37.895Z","avatar_url":"https://github.com/IchHabRecht.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TYPO3 Extension t3tags\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/ichhabrecht/t3tags.svg)](https://packagist.org/packages/ichhabrecht/t3tags)\n[![Build Status](https://img.shields.io/travis/IchHabRecht/t3tags/master.svg)](https://travis-ci.org/IchHabRecht/t3tags)\n[![StyleCI](https://styleci.io/repos/174751542/shield?branch=master)](https://styleci.io/repos/174751542)\n\nGenerate tag fields for every record type.\n\n## Features\n\n- Integrates into Core API and extends `group` field behaviour\n- New tags can be added on the fly and are created only when the record is saved\n- New tags that are added to multiple (tag) fields are created only once in database\n\n## Installation\n\n1. Simply install the extension with Composer or the [Extension Manager](https://extensions.typo3.org/extension/t3tags/).\n\n`composer require ichhabrecht/t3tags`\n\n2. In the extension settings configure a page uid, where tags should be stored.\n\n## Usage\n\n**Register a new field using the TagRegistry**\n\n- Add or extend a file in Configuration/TCA/Overrides\n\n```\n\u003c?php\ndefined('TYPO3_MODE') || die();\n\n(function () {\n    $tagRegistry = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\IchHabRecht\\T3tags\\Configuration\\TagRegistry::class);\n\n    $tagRegistry-\u003emakeTaggable(\n        'tt_content',\n        'relevant_tags',\n        [\n            'label' =\u003e 'Relevant tags',\n            'position' =\u003e 'after:--palette--;;access',\n            'fieldConfiguration' =\u003e [\n                'maxitems' =\u003e 5,\n                'fieldInformation' =\u003e [\n                    'tagInformation' =\u003e [\n                        'options' =\u003e [\n                            'labels' =\u003e [\n                                0 =\u003e [\n                                    'label' =\u003e 'Add here up to five super relevant tags',\n                                ],\n                            ],\n                        ],\n                    ],\n                ],\n            ],\n        ]\n    );\n\n    $tagRegistry-\u003emakeTaggable(\n        'tt_content',\n        'content_tags',\n        [\n            'label' =\u003e 'Content tags',\n            'position' =\u003e 'after:relevant_tags',\n            'fieldConfiguration' =\u003e [\n                'fieldInformation' =\u003e [\n                    'tagInformation' =\u003e [\n                        'options' =\u003e [\n                            'labels' =\u003e [\n                                0 =\u003e [\n                                    'label' =\u003e 'Add here unlimited content tags that describe your topic and the content detail',\n                                ],\n                            ],\n                        ],\n                    ],\n                ],\n            ],\n        ]\n    );\n})();\n```\n\n*Parameters*\n\n1. Table name: Existing TCA table that should be extended\n2. Field name: Name of the new tag field that should be added\n3. Options: Additional field configuration, according to TCA field configuration\n    - label\n    - exclude\n    - fieldConfiguration (config)\n    - l10n_display\n    - l10n_mode\n    - displayCond\n    - position\n    - interface\n    - fieldList\n    - typesList\n4. override: True, if any existing field configuration should be replaced with the one provided\n\n**Get all tags for a record by field**\n\n```\n$tagRepository = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\IchHabRecht\\T3tags\\Domain\\Repository\\TagRepository::class);\n$tagRepository-\u003efindTagsByField('tt_content', 'relevant_tags', 42);\n```\n\n- Returns all tags (as array) from a `tt_content` element with uid `42` and its field `relevant_tags`\n\n**Get all tags by record**\n\n```\n$tagRepository = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\IchHabRecht\\T3tags\\Domain\\Repository\\TagRepository::class);\n$tagRepository-\u003efindTagsByRecord('tt_content', 42);\n```\n\n- Returns all tags (as array) from a `tt_content` element with uid `42`. According to the example registration from above, tags from `relevant_tags` and `content_tags` are returned.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichhabrecht%2Ft3tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichhabrecht%2Ft3tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichhabrecht%2Ft3tags/lists"}