Hello all,
I modified this snippet to add template and language parameters.
Do you find this useful enough to be added to repository ?
Instructions:
- unzip all into a "managerlogin" directory into the "assets/snippets" directory
- create a snippet and copy the contents of the file named "managerlogin.snippet.php"
Parameters (all optional):
- &language [string]
String defining which language file to use for default templates and error messages.
Defaults to ’en’ (english).
’fr’ (french) also is available
- &loginTpl [string]
Template to use when no user is logged within the manager.
Can be either a chunk name or a document ID or directly HTML code.
Defaults to the template used by ManagerLogin previous releases.
For placeholders, see description into the snippet code.
- &loggedTpl [string]
Template to use when a user is logged within the manager.
Can be either a chunk name or a document ID or directly HTML code.
Defaults to the template used by ManagerLogin previous releases.
For placeholders, see description into the snippet code.
- &errorTpl [string]
Template to use for each error message to display.
Can be either a chunk name or a document ID or directly HTML code.
Defaults to the template used by ManagerLogin previous releases.
For placeholders, see description into the snippet code.
- &cssStyle [string]
CSS style to add within the document <head> tag.
Can be either a filename or directly CSS code inside a <style> tag.
No default value.
Warning: When using directly HTML or CSS code for the parameters, it may not
work because of MODx parser behaviour. For example, ’=’ is not supported.