[TYPO3-dev] Introduction package - imagewidths

Thomas Kieslich thomas.kieslich at gmail.com
Mon Feb 7 20:25:07 CET 2011


Hi
I want to use the Introduction package for the doc screenshots of 
tkcropthumbs. I see the four column Layouts but max.imagewidth is set 
for 3 columns Layout. I wrote a new template to respect the imagewidths 
in all 4 Templates.

new: page_blocks_configuration > lib.imagewidth

Content:
## width of content
lib.user_content_width = CASE
lib.user_content_width{
   key.data = levelfield:-1,layout
   default = TEXT
   default.value = 417

   0 < default

   1 = TEXT
   1.value = 650

   2 = TEXT
   2.value = 650

   3 = TEXT
   3.value = 840
}

tt_content {
   # Define max image width for each content column separately
   image.20.maxW.cObject = CASE
   image.20.maxW.cObject {
     key.field = colPos

     default = TEXT
     default.value = 417
     # normal

     0 < lib.user_content_width

     # left
     1 = TEXT
     1.value = 155

     # right
     2 = TEXT
     2.value = 155
   }

   image.20.maxWInText.cObject = CASE
   image.20.maxWInText.cObject {
     key.field = colPos

     default = TEXT
     default.value = 417

     # normal
     0 < lib.user_content_width

     # left
     1 = TEXT
     1.value = 155

     # right
     2 = TEXT
     2.value = 155
   }

Works great, perhaps you like to integrate in an future Version of 
Introduction Package.

kind regards, thomas




More information about the TYPO3-dev mailing list