Difference between revisions of "Skins"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
(Created page with '{{TemplateDocDev}} {{ToTranslate}} == Création d'un nouveau thème == Pour créer un nouveau thème, allez dans le répertoire 'htdocs/theme/' recopier par exemple tout le ré...')
 
m
Tag: 2017 source edit
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{TemplateDocDev}}
+
<!-- BEGIN origin interlang links -->
{{ToTranslate}}
+
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Themes]]
 +
[[es:Temas]]
 +
[[zh:主题]]
 +
<!-- END interlang links -->
  
== Création d'un nouveau thème ==
+
{{TemplateDocDevEn}}
  
Pour créer un nouveau thème, allez dans le répertoire 'htdocs/theme/' recopier par exemple tout le répertoire 'dolibarr' vers un nouveau répertoire qui aura le nom de votre thème.
 
  
Dans ce répertoire changer le nom du fichier .css pour qu'il ait le même nom que le répertoire.
 
  
Modifier le fichier AUTHOR avec les informations vous concernant.
 
  
Modifier ensuite le CSS, ainsi que les images contenues dans le répertoire img pour personnaliser votre thème.
 
  
Le nom du thème apparaitra automatiquement dans la liste des thèmes utilisables sous la page ''Configuration - Interface'' qui vous permettra de l'activer par defaut, ou ''Utilisateurs et Groupes - Onglet Interface utilisateur'' pour l'activer pour un utilisateur donné.
 
  
  
== Diffusion de votre theme ==
 
  
Quand vous avez créer un nouveau thème, vous pouvez fabriquer un package pour le distribuer en utilisant le script '''build/makepack-dolibarrtheme.pl'''
+
= [[File:wallpaper.png]] Create a skin =
  
Vous obtiendrez un fichier .tgz que vous pourrez soumettre dans l'espace téléchargement de Dolibarr (Rubrique '''contrib''').
+
To create a new skin, go into directory 'htdocs/theme/' and copy for example all the directory 'eldy' into a new directory with the name of your skin.
 +
 
 +
In this directory, change name of file *.css* to match name of directory.
 +
 
 +
Edit file AUTHOR with your information.
 +
 
 +
Now, edit the CSS file (*.css*), and all images inside the img directory to personalize your skin.
 +
 
 +
The new skin will appear automatically in the list of available skins in page ''Setup - Display''. This will allow you to activate it by default, or in ''Users and Groups - Display tab'' to activate it for a particular user.
 +
 
 +
 
 +
= [[File:wallpaper.png]] Test of a new theme =
 +
To test your theme on all pages without activating it, just specify it in the address bar by adding the '''theme''' parameter.
 +
 
 +
Example: <nowiki> https://www.mondolibarr.com/index.php?theme=monnouveautheme </nowiki>
 +
 
 +
 
 +
= [[File:workcomputer.png]] Distribute your skin =
 +
 
 +
Once you have created a new skin, you can build a package to distribute it by running the script '''build/makepack-dolibarrtheme.pl'''
 +
 
 +
You will get a file .tgz that you can submit on the Dolibarr download area (Category '''contrib''').

Latest revision as of 13:21, 14 August 2019






Wallpaper.png Create a skin

To create a new skin, go into directory 'htdocs/theme/' and copy for example all the directory 'eldy' into a new directory with the name of your skin.

In this directory, change name of file *.css* to match name of directory.

Edit file AUTHOR with your information.

Now, edit the CSS file (*.css*), and all images inside the img directory to personalize your skin.

The new skin will appear automatically in the list of available skins in page Setup - Display. This will allow you to activate it by default, or in Users and Groups - Display tab to activate it for a particular user.


Wallpaper.png Test of a new theme

To test your theme on all pages without activating it, just specify it in the address bar by adding the theme parameter.

Example: https://www.mondolibarr.com/index.php?theme=monnouveautheme


Workcomputer.png Distribute your skin

Once you have created a new skin, you can build a package to distribute it by running the script build/makepack-dolibarrtheme.pl

You will get a file .tgz that you can submit on the Dolibarr download area (Category contrib).