---
title: "Feature: #61351 - Add data attribute to Fluid ViewHelpers"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-61351"
source: "Changelog/7.0/Feature-61351-AddDataAttributeToFluidViewHelpers.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #61351 - Add data attribute to Fluid ViewHelpers

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

## Description

Since HTML5 Elements can contain a generic data attribute,
Fluid provides for those elements the possibility to add
key-value pairs as array, which will be rendered as
`data-$key="$value"`.

```html
<f:form.textfield data="{foo: 'bar', baz: 'foos'}" />
```

## Impact

Generic data attributes do not need to be passed by the
`additionalAttributes` array anymore making the viewhelper
more straightforward to use.
