Pic.pm
NAME
Communiware::Filter::Pic - filter to list pictures of current item
SYNOPSIS
::Pic ::Pic(sizes) ::Pic(check) ::Pic(pattern)
DESCRIPTION
This filter lists all the files in the pictures directory of current item. Without argument it creates context consisting of just attributes named PICTURE which contains filename of picture, and BASENAME which contains picture name without extension.
With optional flag ``sizes'' it creates context of three attributes: PICTURE, WIDTH and HEIGHT (useful to substituting into IMG tags) and FILESIZE
With optional attribute ``check'' it returns filename as value of ITEM_ID attribute (because logical operator IN checks only ITEM_ID attribute of the filter result). BASENAME attribute is provided as well.
Pattern can be any pattern acceptable by glob()
. (like *.gif, icon.*) If
pattern is specified then only files matching glob pattern are returned.
Pattern may be followed by check or sizes directive, separated by comma