Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

next/previous buttons in template Photo gallery WebMatrix2

$
0
0

I've modified the template Photo Gallery WebMatrix2 (http://www.rt-vogelfotografie.nl/defaultx)

It works fine; but I would like to have next/previous buttons when a photo is displayed fully. In the current software you have to return to the thumbnails and select a next thumbnail for a full photo.

I've added a next-button, that 'on click' select the next photo. (Local; not visibele on the web.) But it displays it in a new tab; adding 'target=_self' doesn't help. 

The button (at the very bottom of ~/photo/view.cshtml):

<ahref="@Href("~/Photo/Thumbnail",photo.Id-1,new{size="large"})"><imgsrc="~/Images/previous.png"/></a>

The '-1'/'+1' after photo.Id does the next/previous trick, but this next/previous image has to exchange the present photo.

Or I'm barking up the wrong tree?

Any help is welcome!


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>