Hello Peter,
I see the following:
def
slideshow(links=None,table=None,field='image',transition='fade',width=200,height=200):
"""
## Embeds a slideshow
It gets the images from a table
- ``table`` is the table name
- ``field`` is the upload field in the table that contains images
- ``transition`` determines the type of transition, e.g. fade, etc.
- ``width`` is the width of the image
- ``height`` is the height of the image
"""
import random
id=str(random.random())[2:]
if table:
rows = db(db[table].id>0).select()
if db[table][field].type=='upload':
images = [IMG(_src=URL('default','download',args=row[field])) for row in
rows]
else:
images = [IMG(_src=row[field]) for row in rows]
elif links:
images = [IMG(_src=link) for link in links.split(',')]
else:
images = []
return DIV(SCRIPT("jQuery(document).ready(function()
{jQuery('#slideshow%s').cycle({fx: '%s'});});" %
(id,transition)),DIV(_id='slideshow'+id,*images))
But how do I use it in my pages?
Regards,
Praveen
On Monday, March 12, 2012 3:28:28 PM UTC+5:30, peter wrote:
>
> If you look in pugin_wiki, you will see slideshow.
>
>
>
> On Mar 12, 9:36 am, Praveen Bhat <[email protected]> wrote:
> > Hello,
> >
> > Can someone give me a simple example for Photo Gallery with Sliding
> content?
> >
> > Thanks in advance....!!!
> >
> > Regards
> > Praveen