deftempl
NAME
deftempl - assigns default templates to item type
DESCRIPTION
Script, which allows to edit default templates for given item. Typically called from web-mastering page
Requires following arguments: SERVER, ITEM_ID, REFERER. Requires that current user has moderator rights on given item.
Creates a web form with list of all item types, which have default templates on this site, on the left and inheritance tree of default templates on the right. In the tree, items where at least one standard template is redefined are marked with asterisk.
Note that unless appropriate checkbox is checked, changing on standard template wouldn't affect existing items. It only allows to specify template which would be used when new item is created or existing one is updated and its template reset to ``Type default''
If checkbox is checked, all items of given type in current subtree would be altered, even if they have explicitely set templates.
If passed parameter ``ADDTYPE'', along with server, adds default template for given type at the site level