{"id":21277919,"url":"https://github.com/b13/cta","last_synced_at":"2026-03-16T09:02:03.749Z","repository":{"id":42458846,"uuid":"266052668","full_name":"b13/cta","owner":"b13","description":"Fields, configuration and a content element type for all kinds of CTAs for TYPO3","archived":false,"fork":false,"pushed_at":"2024-10-08T14:50:12.000Z","size":46,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-08T17:54:48.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/b13.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-05-22T07:58:16.000Z","updated_at":"2024-10-08T14:50:07.000Z","dependencies_parsed_at":"2023-01-28T12:16:59.393Z","dependency_job_id":null,"html_url":"https://github.com/b13/cta","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fcta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fcta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fcta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fcta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/cta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225140681,"owners_count":17427152,"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":[],"created_at":"2024-11-21T10:08:16.004Z","updated_at":"2026-03-16T09:02:03.539Z","avatar_url":"https://github.com/b13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EXT:cta\n\n## About this extension\n\nThis extension adds dedicated fields for creating Call-to-action elements and optionally adds a new stand alone cta \nelement to your TYPO3 project with a simple Fluid template for frontend rendering.\nIt is intended as a basis to add link and cta functionality to your custom content elements like teasers, text elements.\n\nThree fields are being added to table `tt_content`: `tx_cta_link`, `tx_cta_linklabel` and `tx_cta_linkconfig`; `tx_cta_linkconfig` is rendered \nas a dropdown by default.\n\nTo add CTA fields to other content elements you can make use of two different palettes:\n\n* `linklabel` renders a link field and a corresponding link label field.\n* `linklabelconfig` adds a third field for additional configuration options per link.\n\n## Installing\n\nUse composer to add this content element to your project\n\n`composer require b13/cta`\n\nand install the extension using the Extension Manager in your TYPO3 backend.\n\n### Update from Version \u003c 2\n\nWe have changed the database fields\n\n* link to tx_cta_link\n* linklabel to tx_cta_linklabel\n* linkconfig to tx_cta_linkconfig\n\n### Use the example cta element\n\nIf you want to make use of the basic cta element included as an example, add the TypoScript setup to your site-Extension\nsetup:\n\n`@import 'EXT:cta/Configuration/TypoScript/setup.typoscript'`\n\nTo add the element to the new content element wizard, also include the PageTSConfig in your templates:\n\n`@import 'EXT:cta/Configuration/PageTs/PageTs.tsconfig'`\n\nThis will add the CTA element to the \"common\" tab (you can change this within your PageTSConfig of course).\n\n### Customizing\n\nTo make use of your own Fluid template add your template within your site-Extension using the template name \"cta.html\".\n\nBy default, the content element will show four fields:\n- Layout\n- Link\n- Link label\n- Link configuration\n\nTo remove fields you don't need, use PageTSConfig within your template configuration, like this:\n\n`TCEFORM.tt_content.layout.types.cta.disabled = 1`\n\nor better yet, use `columnsOverride` configuration in your TCA.\n\nTo add options to the dropdown for either one of the dropdown fields, use PageTSConfig like this:\n\n`TCEFORM.tt_content.tx_cta_linkconfig.types.cta.addItems.inverted = Inverted Button`\n\nor, again, use `columnsOverrides` in your TCA configuration.\n\n## License\n\nAs TYPO3 Core, _cta_ is licensed under GPL2 or later. See the LICENSE file for more details.\n\n## Background, Authors \u0026 Further Maintenance\n\nTYPO3 is highly configurable and it is easy to add custom content types or fields to the system using a few lines of TCA\nconfiguration, a simple PageTS configuration to add the type to the list of elements in the New Content Element Wizard,\nand a few lines of TypoScript and a Fluid Template.\nThis extension adds a content type in the same way we create custom content types for our TYPO3 projects at\n[b13](https://b13.com).\n\n`EXT:cta` was initially created by David Steeb in 2017 for [b13, Stuttgart](https://b13.com). We use this as a basis to\nadd cta fields to `tt_content`, render buttons and cta links, add cta elements to other content types (like adding a\ncall-to-action to a textmedia element) and as a general purpose \"read more\"-type of link field for teasers, sliders and \nlots of different content types in general.\n\n[Find more TYPO3 extensions we have developed](https://b13.com/useful-typo3-extensions-from-b13-to-you) that help us\ndeliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term\nperformance, reliability, and results in all our code. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fcta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fcta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fcta/lists"}