TSRef - TypoScript Reference

8.1.6. 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.

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 instead
If 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:
      10 = IMAGE
      10.file = toplogo*.gif
      10.params = hspace=5
      10.wrap = |<BR>

Valid XHTML 1.0!