Hi, i have a problem using couch with top-up.js script for displaying photos on my site.
Top-up is basically very similar to any lightbox plugin, and i tought that it would be very easy to implement it with couch.
What i get is this strange behaviour in which photos in gif format are displayed correctly, and the ones in jpg are not.
Top up is used in this line:
<a href="<cms:show slikaVelika/>"><img src="<cms:show slikaMala/>"/></a>
where slikaVelika is big image(600x300) and slikaMala is small image(223x112).
I declared the template as clonable:
and then putting the <a href="<cms:show slikaVelika/>"><img src="<cms:show slikaMala/>"/></a> inside cms:masterpage tag.
When i put inside gif images it works ok, but with jpg it can't display the big image, instead it displays the smaller one again.
Thanks in advance!
Top-up is basically very similar to any lightbox plugin, and i tought that it would be very easy to implement it with couch.
What i get is this strange behaviour in which photos in gif format are displayed correctly, and the ones in jpg are not.
Top up is used in this line:
<a href="<cms:show slikaVelika/>"><img src="<cms:show slikaMala/>"/></a>
where slikaVelika is big image(600x300) and slikaMala is small image(223x112).
I declared the template as clonable:
- Code: Select all
<cms:template title='Slike' clonable='1'>
<cms:editable name='slikaVelika'
crop='1'
width='600'
height='300'
type='image'
/>
<cms:editable name='slikaMala'
crop='1'
width='223'
height='112'
type='image'
/>
</cms:template>
and then putting the <a href="<cms:show slikaVelika/>"><img src="<cms:show slikaMala/>"/></a> inside cms:masterpage tag.
When i put inside gif images it works ok, but with jpg it can't display the big image, instead it displays the smaller one again.
Thanks in advance!