For install lyiightbox you have only to copy his files in /protected/extensions/lyiightbox folder.
To use this widget with one image:
$this->widget('ext.lyiightbox.LyiightBox2', array( 'smallest' => '/path/to/thumb/images.jpg', 'biggest' => '/path/to/biggest/image.jpg', 'title' => 'Sample Image 1.' ));
If you want, you can also hide some image with "visible" option. By default visible is set to true.
$this->widget('ext.lyiightbox.LyiightBox2', array( 'smallest' => '/path/to/thumb/images.jpg', 'biggest' => '/path/to/biggest/image.jpg', 'title' => 'Sample Image 1.' )); $this->widget('ext.lyiightbox.LyiightBox2', array( 'smallest' => '/path/to/thumb/images.jpg', 'biggest' => '/path/to/biggest/image.jpg', 'title' => 'Sample Image 1.', 'visible' => false ));
If you put more images in the same group, you can just show the first one and hide the others. The others must have the same group name. By default, all images stay in "_" group. If you want, you can specify it:
$this->widget('ext.lyiightbox.LyiightBox2', array( 'smallest' => '/path/to/thumb/images.jpg', 'biggest' => '/path/to/biggest/image.jpg', 'title' => 'Sample Image 1.', 'group' => 'sample' )); $this->widget('ext.lyiightbox.LyiightBox2', array( 'smallest' => '/path/to/thumb/images.jpg', 'biggest' => '/path/to/biggest/image.jpg', 'title' => 'Sample Image 1.', 'visible' => false, 'group' => 'sample' ));
Total 10 comments
I've fixed the path bug. Thank you!
the real path of prev and next button is
url(../lyiightbox2images/nextlabel.gif) url(../lyiightbox2images/prevlabel.gif)
The issue is "render images stored in a database"?
sensorario, since thumbSide is part of Galleryii I don't see that as a solution to my question. I have not been able to get Galleryii to work with a database. No problems with using it as you have it built but would really like to take advantage of this extension with db files if possible. Thanks
To set dimensions of thumbnails you have to set thumbSide parameter.
If I am displaying images from my db can I somehow set the thumbnail size?
Also is there a way to use Galleryii to render images in the db?
Thanks for the extension.
Thank you for your contribute DavidTran: I've just added rc1.1.1
Fix is visible here: github.com/sensorario/lyiightbox
I copy lyiightbox to extensions folder and use this code to display widget:
But widget don't show on my website, it throws this error: Uncaught ReferenceError: lyiightboxAssetUrl is not defined
In next version (you can see it in github) there will be a new class and new features: Galleryii. I think this will be done within 30 of this month.
PS. ChangeLog is the first title :-p
As there is a new version of the extension, would be nice if you include a changelog.
Leave a comment
Please login to leave your comment.