TSref/IMAGE

From TYPO3Wiki

Jump to: navigation, search
IMAGE
Translations info
An english page for every translation.
All pagenames in english.

  en       de   nl   fr   ja   zh  

This page is document in progress. TypoScript

IMAGE

PHP-function: $cObj->cImage();

The array $GLOBALS["TSFE"]->lastImageInfo is set with the info-array of the returning image (if any) and contains width, height and so on.


Note There is a different IMAGE-Object in the GIFBUILDER context. It is not the same Object!


Property: Data type: Description: Default:

file

imgResource

-

params

<IMG>-params

-

border

integer

Value of the “border” attribute of the image tag.

0 -

altText
titleText
alttext

string / stdWrap

If no titltext is specified, it will use the alttext insteadIf no alttext is specified, it will use an empty alttext

("alttext" is the old spelling of this attribute. It will be used only if "altText" does not specify a value or properties)

-

longdescURL

string / stdWrap

"longdesc" attribute (URL pointing to document with extensive details about image).

-

linkWrap

linkWrap

(before ".wrap")

-


imageLinkWrap

boolean / imageLinkWrap

NOTE: ONLY active if linkWrap is NOT set and file is NOT GIFBUILDER (as it works with the original imagefile)

-


if

if

if "if" returns false the image is not shown!

-

wrap

wrap

-

stdWrap

stdWrap

-


[tsref:(cObject).IMAGE]

Example

# Example:
10 = IMAGE 
10.file = toplogo*.gif
10.params = hspace=5
10.wrap = |
# Link to Page with ID 1 10.stdWrap.typolink.parameter = 1


# Image in the link
10 = TEXT
10 {
   typolink.parameter = 10
   stdWrap.prepend = IMAGE
   stdWrap.prepend.file = fileadmin/template/image.gif
   field = title
}
Personal tools