Menu
Parametry:
-
Name: name under which the menu will be displayed.It is recommended to create the name in English carefully. The name is automatically converted
to the localized version using pytigon's I18N module.
-
Perms: Django perms compatible with Django function: user.has_perm. If '|' appears in the field, the part before '|' means a text parameter that
will be passed to the function whose path is after '|' as the second parameter. The first parameter of the function will be the current user.
For example x|schadmin.applib.perms.if_filer means that function if_filer from module schadmin.applib.perms will be run with the parameter "x".
Example function declaration:
def if_filer(user, text_parameter);
if settings.hasattr(text_parameter) and getattr(settings, text_parameter):
return True
else:
return False
-
URL - path of url related to base path of application. All URL's defined in the application are available for selection in the drop-down list.
-
Url type: Depending on the selected url type, the menu item may only appear in certain types of user applications.
-
Icon: TODO