|
|
How can i set a class on the images i generate with my extensionIf you're generating images with your extension and you need to add a custom class on these images like (<img class="yourclass" src="yourfile">), then you can achieve this with the following snippet. Pay attention to the 6th line!$conf['image.']['file'] = 'uploads/tx_yourextension/' . $row['image']; $conf['image.']['file.']['maxW'] = $this->conf['imageMaxWidth']; $conf['image.']['file.']['maxH'] = $this->conf['imageMaxHeight']; $conf['image.']['altText'] = $row['title']; $conf['image.']['titleText'] = $row['title']; $conf['image.']['params'] = 'class="yourclass"'; $imgCode = $this->IMAGE($conf['image.']); 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 |