Return to Snippet

Revision: 9989
at December 2, 2008 14:53 by ascarion


Initial Code
plugin.tx_ccrandomimage_pi2 {
  path = fileadmin/user_upload/images/gallery/
  renderObj >
  renderObj = COA
  renderObj {
    stdWrap.wrap = <p> | </p><p class="more"><a href="index.php?id=6">Gallery</a></p>
    10 = IMAGE
    10 {
      file = GIFBUILDER
      file {
        XY = 166, 120
        format = jpg
        quality = 80
        10 = IMAGE
        10.file = ###FILE_1###
        10.file.width = 166c
        10.file.height = 120c
      }
      stdWrap.outerWrap.cObject = COA
      stdWrap.outerWrap.cObject {
        10 = TEXT
        10.value = <a href="
        50 = IMG_RESOURCE
        50.file = GIFBUILDER
        50.file {
          XY = [10.w], [10.h]
          format = jpg
          10 = IMAGE
          10.file = ###FILE_1###
          10.file.width = 800m
          10.file.height = 600m
        }
        100 = TEXT
        100.value = " rel="lightbox"> | </a>
      }
    }   
  }
}

Initial URL


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

Initial Title
Display random image with Slimbox

Initial Tags


Initial Language
TYPO3