TSRef - TypoScript Reference
5.1.3. imageLinkWrap:
This object wraps the input (an image) with a link to the script "showpic.php" with parameters that define such things as the size of the image, the backgroundcolor of the new window and so on.
An md5-hash of the parameters is generated. The hash is also generated in "showpic.php" and the hashes MUST match in order for the image to be shown. This is a safety feature in order to prevent users from changing the parameters in the url themselves.
PHP-function: $cObj->imageLinkWrap()
|
Property: |
Data type: |
Description: |
Default: |
|---|---|---|---|
|
width |
int (1-1000) |
If you add "m" to either the width or height, the image will be held in proportions and width/height works as max-dimensions |
|
|
height |
int (1-1000) |
see ".width" |
|
|
effects |
see GIFBUILDER / effects. (from stdgraphics-library) |
Example: gamma=1,3 | sharpen=80 | solarize=70 |
|
|
sample |
boolean |
If set, -sample is used to scale images instead of -geometry. Sample does not use antialiasing and is therefore much faster. |
|
|
alternativeTempPath |
|
Enter an alternative path to use for temp images. Must be found in the list in TYPO3_CONF_VARS[FE][allowedTempPaths] |
|
|
title |
string |
page title of the new window (HTML) |
|
|
bodyTag |
<tag> |
Body tag of the new window |
|
|
wrap |
wrap |
Wrap of the image, which is output between the body-tags |
|
|
target |
<A>-data:target |
NOTE: Only if ".JSwindow" is set |
|
|
JSwindow |
boolean |
The image will be opened in a new window which is fitted to the dimensions of the image! |
|
|
JSwindow.expand |
x,y |
x and y is added to the window dimensions. |
|
|
JSwindow.newWindow |
boolean |
Each picture will open in a new window! |
|
|
JSwindow.altUrl |
string /stdWrap |
If this returns anything, the URL shown in the JS-window is NOT showpic.php but the url given here! |
|
|
JSwindow.altUrl_noDefaultParams |
boolean |
If this is set, the image parameters are not appended to the altUrl automatically. This is useful if you want to create them with a userfunction instead. |
|
|
typolink |
->typolink |
NOTE: This overrides the imageLinkWrap if it returns anything!! |
|
|
enable |
boolean /stdWrap |
The image is linked ONLY if this is true!! |
0 |
[tsref:->imageLinkWrap]
Example:
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=black>
wrap = <A href="javascript:close();"> | </A>
width = 800m
height = 600
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 17,20
}