[TYPO3-english] problem with split in TS - URGENt
Piotr Burda
pburda at typo3job.com
Thu Dec 22 13:28:07 CET 2011
Hi group
I have big problem wits TS
i have this TS, it` used to add imagej to jQuery script images from
tt_news, everything works fine when in tt_news article i have only one
image, but when trere is 2 or more then this does not work, i know that
i need to split values from image field of tt_news table, but i don`t
know how
here is the script
lib.images_test = COA
lib.images_test.wrap = <script type="text/javascript"> var
vegas_background_images = new Array(); | (function($){
$(document).ready( function () {
parseVegasImages(vegas_background_images); }); }) (jQuery); </script>
lib.images_test {
10 = TEXT
10.data =
{
20 = CONTENT
20 {
table = tt_news
select {
selectFields = uid, image
pidInList = 249
andWhere.data = GPvar:tx_ttnews|tt_news
andWhere.wrap = uid=|
}
renderObj = TEXT
renderObj {
field = image
wrap = vegas_background_images.push('<img src="uploads/pics/|" />');
}
}
}
}
The question is how to wrap each image in
vegas_background_images.push('<img src="uploads/pics/|" />');
Please help i have deadline on 15:00 cet
Regards
Piotr
www.typo3job.com
More information about the TYPO3-english
mailing list