Posted By

ascarion on 12/02/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rob-ot


Display random image with Slimbox


 / Published in: TYPO3
 

Required extensions: ccrandomimage, pmkslimbox, sg_cropscale (not required if the ā€œcā€ is removed in lines 16 + 17)

  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 = IMG_RESOURCE
  24. 50.file = GIFBUILDER
  25. 50.file {
  26. XY = [10.w], [10.h]
  27. format = jpg
  28. 10 = IMAGE
  29. 10.file = ###FILE_1###
  30. 10.file.width = 800m
  31. 10.file.height = 600m
  32. }
  33. 100 = TEXT
  34. 100.value = " rel="lightbox"> | </a>
  35. }
  36. }
  37. }
  38. }

Report this snippet  

You need to login to post a comment.