sourcefabric/Newscoop — pull request #396 by ahilles107 (2013-09-30 11:38:56+00:00)
Title: Improve slideshows in templates

With that change templators will can resize images inslide slideshow - it's usefull for example in fanccybox slideshows when you wan't show for user big foto in full screen but you don't want send for him oryginial image (sometimes very big)

OLD:
````http://{{ $gimme->publication->site }}/{{ $item->image->original }}````

NEW:
````http://{{ $gimme->publication->site }}/get_img?ImageWidth=800&ImageId={{ $item->image->id }}````

OLD:
```
{{ foreach $gimme->article->slideshows as $slideshow }}

{{ $slideshow->headline }}

{{ assign var="counter" value=0 }}
{{ foreach $slideshow->items as $item }}
{{ assign var="counter" value=$counter+1 }}

{{ /foreach }}

{{ /foreach }}
```

NEW:
```
{{ foreach $gimme->article->slideshows as $slideshow }}

{{ $slideshow->headline }}

{{ assign var="counter" value=0 }}
{{ foreach $slideshow->items as $item }}
{{ assign var="counter" value=$counter+1 }}

{{ /foreach }}

{{ /foreach }}
```