Prototype ImageMgr |
|
Actions |
create_action action for creating new Image objects |
main_action display all images of a site or layout |
myimages_action display my images |
Functions |
checkAccess(action, usr, level) permission check (called by hopobject.onRequest()) |
checkAdd(usr, level) check if user is allowed to add images |
deleteAll() function deletes all images |
deleteImage(imgObj) delete an image |
evalImg(param, creator) function checks if image fits to the minimal needs |
Macros |
ImageMgr.imagelist function renders a list of the newest n (default=5) thumbnails or images FIXME: is this deprecated or even obsolete? (we have response.imagelist in main.skin) |
ImageMgr.topicchooser macro renders a list of existing topics as dropdown |
Skins |
main.skin response.imagelist, response.pagenavigation |
new.skin request.topic, response.action |
type.properties |
## ## collections ## _children = collection(Image) _children.local = SITE_ID _children.foreign = IMAGE_F_SITE _children.order = IMAGE_CREATETIME desc _children.filter = IMAGE_PROTOTYPE = 'Image' and IMAGE_F_IMAGE_PARENT is null _children.accessname = IMAGE_ALIAS ## ## mountpoints ## topics = mountpoint(ImageTopicMgr) |