AlignImage
Creator: Aleksandr Pashkevich (ser1ous)
About AlignImage
AligeImage is the component that is designed to show you the required images in the same
format as provides search results of Google. This addition can be combined with the
components of Gallery and GetResourse and FileDir.
Information
Released
July 30, 2013
Supported Database
MySQL
License
GPLv2
Supported Versions
2.2 - <2.2
Downloads
1,812
Instructions
Attention! Before using make sure that you set up IMAGEMAGICK application for PHP.
############################################################################################
How to use AlignImag with Gallery
Add snippet AlignImage
Example
[[AlignImage?
&snippet=`Gallery`
&lineLimit=`5`
&limit=`40`
&lineWidth=`563`
&album=`Gallery`
]]
&snippet - the name of the snippet, the default Getresource
&lineLimit - the number of images in a row
&limnt - the number of images
&lineWidth - the number of pixels in width for the gallery
&album - an album name
############################################################################################
How to use AligImag with GetRecource
Add snippet AlignImage
Example
[[AlignImage?
&snippet=`getResources`
&parents=`3`
&sortby=`{"menuindex":"ASC"}`
&lineLimit=`4`
&limit=`40`
&lineWidth=`563`
&tvPrefix = `tv.`
]]
&snippet - the name of the snippet, the default GetRecource
&lineLimit - the number of images in a row
&limnt - the number of images
&lineWidth - the number of pixels in width for the gallery
&parents - parenting resource identifier list, separated by commas. Use -1 to avoid parental resources ..
&sortby - Any resource box (with the exception of template variables) to sort.
&showHidden - Show hide in meny or no
############################################################################################
How to use AligImag with FileDir
Add snippet AlignImage
Example
[[AlignImage?
&snippet=`filedir`
&dir=`img/`
&lineLimit=`4`
&limit=`40`
&lineWidth=`563`
]]
&snippet - the name of the snippet, the default GetRecource
&lineLimit - the number of images in a row
&limnt - the number of images
&lineWidth - the number of pixels in width for the gallery
&dir - path to the folder, the default assets/
############################################################################################
Advanced settings.
############################################################################################
&tpl_in - the name of the chunk, in which the image is placed
&image_absolute - this url to a reduced image
&id - id image
&album - the album title
&origin - a reference to the original image
& tpl_out - Name chunk of that is wrapped up our result
############################################################################################
For use with the Bootstrap Gallery add any calls
& tpl_in = `tpl.galAlignImage_bootstrap`
& tpl_out = `tpl.outAlignImage_bootstrap`
############################################################################################
New in 0.0.2-beta1
v0.0.2 beta
-Fix bootstrap gallery
v0.0.1 beta
-Fix read/write picture
-Add support FileDir
-Add support GetRecource
-Add support Gallery