Display random image with Slimbox


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

Required extensions:
cc_random_image,
pmkslimbox,
sg_cropscale (not required if the “c” is removed in lines 16 + 17)


Copy this code and paste it in your HTML
  1. plugin.tx_ccrandomimage_pi2 {
  2. path = fileadmin/user_upload/images/gallery/
  3. renderObj >
  4. renderObj = COA
  5. renderObj {
  6. stdWrap.wrap = <p> | </p><p class="more"><a href="index.php?id=6">Gallery</a></p>
  7. 10 = IMAGE
  8. 10 {
  9. file = GIFBUILDER
  10. file {
  11. XY = 166, 120
  12. format = jpg
  13. quality = 80
  14. 10 = IMAGE
  15. 10.file = ###FILE_1###
  16. 10.file.width = 166c
  17. 10.file.height = 120c
  18. }
  19. stdWrap.outerWrap.cObject = COA
  20. stdWrap.outerWrap.cObject {
  21. 10 = TEXT
  22. 10.value = <a href="
  23. 50.file = GIFBUILDER
  24. 50.file {
  25. XY = [10.w], [10.h]
  26. format = jpg
  27. 10 = IMAGE
  28. 10.file = ###FILE_1###
  29. 10.file.width = 800m
  30. 10.file.height = 600m
  31. }
  32. 100 = TEXT
  33. 100.value = " rel="lightbox"> | </a>
  34. }
  35. }
  36. }
  37. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.