Page 1 of 1

Gallery lightbox template --- DownCnt

Posted: Tue Jul 05, 2011 2:02 pm
by bkiss
I hope to post this in the right place,

We want to organize a photo contest for our customers, (touristic agency). Until now i managed to have an upload page and it's working with gallery nice and smooth . (from here: http://forum.cmsmadesimple.org/viewtopi ... =4&t=53584 )

In the second stage i want from the visitors to vote on each image, and we will count the votes.
What i see is: DownCnt module .

I want to use, for example the lightbox template from gallery.

for every image displayed i want to add a link to vote like you see below.

<a href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->titlename}" rel="lightbox[gallery]"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a>
<a href="{DownCnt name='{$image->titlename}' link='#'}>Vote</a>

The example doesn't work because the {{}} .

The main question is how can i get the image name or anything, and put into this: {DownCnt name='__image_name__' link='#'} ?

If you have another solution, it would be nice to share it ;)

Thank you in advance...

bkiss

Re: Gallery lightbox template --- DownCnt

Posted: Tue Jul 05, 2011 2:30 pm
by Jos
This should do the job

Code: Select all

<a href="{DownCnt name=$image->titlename link='#'}>Vote</a>
Although I don't know what module DownCnt does and if it works.

Re: Gallery lightbox template --- DownCnt

Posted: Tue Jul 05, 2011 2:54 pm
by bkiss
It's working!!!,

Sincerely i have tried this but a with the ' ' ( {DownCnt name='$image->titlename' link='htt..'} ) ... just beginner.


Thank you!