Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

TSref/addParams

From TYPO3Wiki
Jump to: navigation, search

TypoScript This page is document in progress.


other Typoscript functions

addParams

Property: Data type: Description: Default:
_offset int 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
1
(array of strings) string /stdWrap This defines the content of each added property to the tag.

If there is a tag-property with this name already (case-sensitive!) that property will be overridden!

If the returned value is a blank string (but not zero!) then the existing (if any) property will not be overridden.

[tsref:->addParams]

# Example:
page.13 = HTML
page.13.value = <tr><td valign=top>
page.13.value.addParams.bgcolor = {$menuCol.bgColor}
page.13.value.addParams._offset = -1 
# Result example:
<tr><td valign="top" bgcolor="white">

(This example adds the 'bgColor' property to the value of the HTML cObject, if the content is not “”. (zero counts as a value here!))
Go to: typo3.org    
Login, and you can edit.
Personal tools
Namespaces

Variants
Actions