InPost Gallery 2.0.5 release

  • Added special expressions for selecting output images.
  • Added fancy box script
[divider]separator[/divider]

Special expressions

For example: you want to output 2 first images from 4 last posts. From now no problems. Just paste {‘slug’:’post’,’exec’:’take’,’data’:(‘4:DESC:2:first’)}  in popup field “Post id”  and thats all!

Now supports 2 commands (exec): take,takebyid.

Let’s consider them.

{‘slug’:’post’,’exec’:’take‘,’data’:(‘4:DESC:2:first’)} – output 2 first images from 4 last(DESC) posts

slug – slug of post or any custom type. Depends of your decision.

exec – command (take,takebyid)

data – data by which queries posts. In this example 4 mean count of posts, DESC or ASC – sort order by date, 2count of images from each post, first or last– take 2 first /last  images.

 

 {‘slug’:’post’,’exec’:’takebyid‘,’data’:(‘230:4:last’,’232:2:first’,’234:1:last’)} – take 4 last images from post with ID 230, take 2 first images from post with ID 232, take 1 last image from post with ID 234. In such oeder as in expression images are outputed.

slug – slug of post or any custom type. Depends of your decision.

exec – command (take,takebyid)

data – ‘230:4:last’ =>’posrID,ImagesCount,first or last images to take’

Note: be patient with syntax, and do not write spaces, another way you get error.

If you have any idea about a query conbination write in comments, maybe I will consider them =)