Enable Slimbox for wt_gallery image list


/ Published in: TYPO3
Save to your folder(s)

The image width and height can be set in <code>maxW</code> / <code>maxH</code>. To use the image title in the <code>IMAGE</code> cObject the <em>wt_gallery</em> code must be patched (at least for version 3.0.4) to include the picture meta information before rendering the cObject.


Copy this code and paste it in your HTML
  1. plugin.tx_wtgallery_pi1 {
  2. list.image.imageLinkWrap.typolink >
  3. list.image.imageLinkWrap.typolink {
  4. parameter.cObject = IMG_RESOURCE
  5. parameter.cObject {
  6. file {
  7. import.field = picture
  8. maxW = 600
  9. maxH = 600
  10. }
  11. }
  12. ATagParams = rel="lightbox" title="{field:title}"
  13. ATagParams.insertData = 1
  14. }
  15. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.