---
title: "Feature: #98074 - Suggest CSS classes in link browser"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-98074-1791406656"
source: "Changelog/15.0/Feature-98074-SuggestCssClassesInLinkBrowser.rst"
typo3-version: "15.0"
typo3-major: 15
type: "feature"
issue: 98074
forge: "https://forge.typo3.org/issues/98074"
tags: ["Backend", "TSConfig", "ext:backend"]
rendered: "2026-10-24T07:43:52+00:00"
---

# Feature: #98074 - Suggest CSS classes in link browser {#feature-98074-1791406656}

See [forge#98074](https://forge.typo3.org/issues/98074)

## Description {#description}

The CSS class field of the link browser for TCA fields of type
[link](https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Link/Index.html#columns-link) can now offer a list of predefined CSS
classes. Editors pick a class from the list or still enter a custom one,
similar to the existing choices of the target field.

The classes are configured via page TSconfig. Each entry consists of a
`value`, which is the CSS class (or several space-separated classes), and an
optional `label`, which can be a plain text or a localization reference. If
no label is set, the value is shown.

Global configuration (applies to all link types):

**EXT:my_extension/Configuration/page.tsconfig**

```typoscript
TCEMAIN.linkHandler.properties.cssClass.items {
    10 {
        value = btn btn-primary
        label = my_extension.messages:linkClass.buttonPrimary
    }
    20 {
        value = link-arrow
        label = Arrow link
    }
}
```

Handler-specific configuration replaces the global list for that link type:

**EXT:my_extension/Configuration/page.tsconfig**

```typoscript
TCEMAIN.linkHandler.file.cssClass.items {
    10 {
        value = link-download
        label = Download
    }
}
```

The option complements `cssClass.default`, introduced with
[Feature: #107081 - Add options to predefine link target and class in link browser](https://docs.typo3.org/permalink/changelog:feature-107081-1752377084), which preselects a class for new links.

The CSS class field of the link browser in the rich text editor is not
affected, its classes are still configured in the CKEditor configuration.

## Impact {#impact}

Integrators can provide the CSS classes editors are supposed to use for links
in TCA link fields, while editors can still enter any other class.
