|
|
How to link an image in typoscriptYou can link images from typoscript in the following manner: 1) If you generated the image
temp.linkedimage = COA
temp.linkedimage{
2 = IMAGE
2{
file=GIFBUILDER
file{
XY=[10.w]+10,45
backColor= #5C5C5C
transparentBackground = 1
10=TEXT
10{
text = Text displayed in image
fontSize = 13
fontFile=fileadmin/templates/font/arial.ttf
fontColor = #ffffff
offset = 10,24
}
}
}
2.stdWrap.typolink.parameter=12
}
In the example above we are generating an image with transparent background. You can erase that line if you do not need transparent background. The link actually is generated with the line 2.stdWrap.typolink.parameter=12 , here you should change 12 to the page id you want to link to. 2) If you are reading the image from file
temp.linkedimage = COA
temp.linkedimage{
10 = IMAGE
10.file=yourimage.gif
10.stdWrap.typolink.parameter=12
}
In this case the setup is much simpler. You only need to specify the filename and the page id you want to link to (here is 12) General aspects : | TYPO3 | TYPO3 Installation | TYPO3 Configuration | TYPO Administration | TYPO3 Performance |TYPO3 Troubleshooting | TYPO3 Glossary | Development : | Typoscript | TYPO3 Extensions - TER | TYPO3 API | TYPO3 Extension Development | Extbase | Fluid? | 3rd party | Back to > CMS |
Google SearchLogin |