Attention

TYPO3 v9 has reached its end-of-life September 30th, 2021 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.

addParams

Warning

addParams is deprecated since version 9 and will be removed in version 10. Use DataProcessors or Fluid Styled Content instead.

Adds parameters to an HTML tag.

_offset

Property

_offset

Data type

integer

Description

Use this to define which tag you want to manipulate.

1 is the first tag in the input, 2 is the second, -1 is the last, -2 is the second last.

Default

1

(array of strings)

Property

(array of strings)

Data type

string / stdWrap

Description

The name of the property defines the property to be added to the tag. The value is what will be set as content of the property.

If the tag already has a property with this name (case-sensitive!), that property will be overridden!

If the returned value is a blank string (but not zero!), then the property will not be set and (if it exists already) not be overridden.

Example

page.13 = TEXT
page.13.value = <tr><td>
page.13.stdWrap.addParams.bgcolor = white
page.13.stdWrap.addParams._offset = -1

Result example:

<tr><td bgcolor="white">

This example adds the bgColor property to the value of the TEXT cObject.