Prototype LayoutMgr |
|
Actions |
create_action choose a new root layout |
import_action import action |
main_action main action |
Functions |
checkAccess(action, usr, level) permission check (called by hopobject.onRequest()) |
checkEdit(usr, level) check if user is allowed to edit layouts |
deleteLayout(layout) function deletes a layout |
evalImport(param, creator) import a new Layout that was uploaded as a zip file |
evalNewLayout(param, creator) create a new Layout based on a chosen parent layout |
renderParentLayoutChooser(selLayout, firstOption) render a dropdown containing shareable system layouts |
setDefaultLayout(alias) Set the layout with the alias passed as argument to the default site layout |
Macros |
LayoutMgr.layoutchooser render a dropdown containing available layouts |
Skins |
import.skin response.action, response.layoutlist, response.pagenavigation |
main.skin response.layoutlist, response.pagenavigation |
new.skin response.action, response.layoutlist, response.pagenavigation |
type.properties |
## ## collections ## _children = collection(Layout) _children.local = SITE_ID _children.foreign = LAYOUT_F_SITE _children.accessname = LAYOUT_ALIAS _children.order = LAYOUT_CREATETIME desc |