Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Index of current picture

Daan Raman

Oct 14, 2014 05:18PM EDT

HI There

I am using <li>{{ album.context.position }} / {{ album.counts.images }}</li> in my theme to get the current position of an image in the album, and the total of images in the album (so visitors see for example 4 / 5 when they are at picture 4 of a total of 5 in an album). However, {{ album.context.position }} does not appear to work, whereas {{ album.counts.images } does show the total correctly. Can you tell me what I am doing wrong? Thanks!

Up 0 rated Down

Daan Raman

Oct 14, 2014 05:56PM EDT
Found it myself! I accidentally posted in the wrong section so feel free to move this to "templates":

<span id="cur_img_index">&nbsp;</span> / <span id="cur_img_total">&nbsp;</span></li>

<koken:pulse jsvar="pulse" group="albums" next="#sldshw-next" previous="#sldshw-prev" toggle="#sldshw-play" link_to="advance" />

<script>
pulse.on( 'item', function(e) {
$('span#cur_img_index').html(e.data.position);
$('span#cur_img_total').html(e.data.total);
});
</script>

This question has received the maximum number of answers.

support@koken.me
http://assets0.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete