colorbox - My manually built TYPO3 lightbox isn't working properly -


in coa, have typoscript add image linked larger copy of itself. javascript plugin i'm using (colorbox) isn't able resize image properly.

  20 = content   20 {     wrap = <div class="lightbox clearfix">|</div>     required = 1      table = tt_content     select.languagefield = sys_language_uid     select.where = colpos = 2     select.selectfields = bodytext,image,header     renderobj=coa     renderobj{           10 = files       10 {           required = 1           references {             table = tt_content             fieldname = image           }           renderobj = image           renderobj {             file.import.data = file:current:originaluid // file:current:uid             file.width=300c             file.height=300c             imagelinkwrap = 1             imagelinkwrap {                 enable = 1                 width = 1600m                 height = 1600m                 jswindow = 0                 linkparams.atagparams {                   // title.data =                    datawrap = class = "lightbox-group" title="{file:current:description}"                 }             }           }       }     }   } 

what's up?

here's correct typoscript. i'm sharing because legacy weirdness others might stumble upon too.

you have set imagelinkwrap.directimagelink = 1, else imagelinkwrap won't deliver image itself, html page containing image!

20 = content   20 {         wrap = <div class="lightbox clearfix">|</div>         required = 1          table = tt_content         select.languagefield = sys_language_uid         select.where = colpos = 2         select.selectfields = bodytext,image,header         renderobj=coa         renderobj{             10 = files           10 {               required = 1               references {                 table = tt_content                 fieldname = image               }               renderobj = image               renderobj {                 file.import.data = file:current:originaluid // file:current:uid                 file.width=300c                 file.height=300c                 imagelinkwrap = 1                 imagelinkwrap {                     enable = 1                     width = 1600m                     height = 1600m                     directimagelink = 1                     jswindow = 0                     linkparams.atagparams {                       // title.data =                        datawrap = class = "lightbox-group" title="{file:current:description}"                     }                 }               }           }         }       } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -