LemonLDAP::NG is shipped with 3 skins:
You can change the skin in Manager: General Parameters
> Portal
> Customization
> Skin
.
A skin is composed of different files:
A skin will often refer to the common
skin, which is not a real skin, but shared skin objects (like scripts, images and CSS).
To customize a skin, the simplest way is to create a new skin folder:
cd portal/skins mkdir myskin mkdir myskin/css mkdir myskin/images
Then create symbolic links on template files, as you might not want to rewrite all HTML code (else, do as you want).
cd myskin ln -s ../pastel/*.tpl .
We include some template files that can be customized:
To use custom files, delete links and copy them into your skin folder:
rm custom* cp ../pastel/custom* .
Then you only have to write myskin/css/styles.css
and add your media to myskin/images
. Put all custom HTML code in the custom template files.
To configure your new skin in Manager, select the custom skin, and enter your skin name in the configuration field.
Error messages are defined in source code. If they really do not please you, override them! You just need to know the ID of the error (look at Portal/Simple.pm) and then add to lemonldap-ng.ini
:
[portal] # Custom error messages error_0 = Big brother is watching you, authenticated user
Template parameters are defined in source code. If you need to add a template parameter for your customization, then add to lemonldap-ng.ini
:
[portal] # Custom template parameters tpl_myparam = world
Then you will be able to use it in your template like this:
Hello <TMPL_VAR NAME="myparam">!
Connected as
in the menu