I'm running tt_news on my site to show a separate List-view (always visible, next to the maincontent area) together with the Latest/Single section for detailled view of the News overview in the List section (so these appear in the maincontent area).
These News elements have a image + text. Some News elements have to show lots of Images in the Single View. I'm using rgsmoothgallery to show these images.
The problem is, that I can't find anywhere on the internet how to have different configurations between Single/Latest/List mode, except in the manual of rgsmoothgallery:
"To show the gallery only e.g. in LIST-view but not in SINGLE-view just override the TS in the SINGLE-view."
Right now, the List view are positioned in different Div layers, because they're always visible. The Latest View should only contain 1 image to act as a teaser. The Single View should contain all images by using rgsmoothgallery.
How to override the TS of the Latest/List so they're not using the rgsmoothgallery? Only the Single part of tt_news should use the rgsmoothgallery.
Right now I've this TS:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66:
| plugin.tt_news.templateFile = fileadmin/templates/walzicht/news.html plugin.tt_news.displayLatest.image { file.width = 80 file.maxH = 80 } plugin.tt_news.displayList.image { file.width = 50 } plugin.tt_news.displaySingle.image { file.width = 150 file.maxH = 150 } lib.nieuws < plugin.tt_news lib.nieuws { code > code = LIST catImageMode = 0 catTextMode = 0 pid_list > pid_list = 27 orderBy = datetime desc limit = 2 singlePid = 29 useStoragePid = 27 } lib.fotoalbum < plugin.tt_news lib.fotoalbum { code > code = List catImageMode = 0 catTextMode = 0 pid_list > pid_list = 54 orderBy = datetime desc limit = 2 singlePid = 55 useStoragePid = 54 } plugin.tt_news.rgsmoothgallery < plugin.tx_rgsmoothgallery_pi1 plugin.tt_news.rgsmoothgallery { big.file.maxH = 180 width =240 arrows= 1 height = 180 hideInfoPane = 1 showThumbs= 1 lightbox = 1 } |