TSref/IMAGE
From TYPO3Wiki
| IMAGE |
|
||||
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.
| Property: | Data type: | Description: | Default: |
|
file |
- | ||
|
params |
- | ||
|
border |
Value of the “border” attribute of the image tag. |
0 - | |
|
altText |
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 |
"longdesc" attribute (URL pointing to document with extensive details about image). |
- | |
|
linkWrap |
(before ".wrap") |
-
| |
|
imageLinkWrap |
NOTE: ONLY active if linkWrap is NOT set and file is NOT GIFBUILDER (as it works with the original imagefile) |
-
| |
|
if |
if "if" returns false the image is not shown! |
- | |
|
wrap |
- | ||
|
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
}
