Zum Inhalt

Templates

A overview of the b1gMail template folder structure:

  • templates/ - Contains all template sets, 1 template set per folder. For template set folders only names with characters from 0-9, a-z, A-Z and -, _ should be formed. Please do not use spaces.
  • templates/(name)/cache/ - Internal cache directory. This directory is filled by b1gMail. When passing on a template, the directory should only contain an empty file with the name "dummy" (since some FTP clients do not create directories without content).
  • templates/(name)/images/ - Contains all graphic files for the template.
  • templates/(name)/js/ - Contains all JavaScript files for the template. These are usually taken over 1:1 from the "default" template when creating a new template.
  • templates/(name)/li/ - Contains all template files for the logged in area ("li" = "logged in"). Pages in the logged in area, unless they are popups or layer content, are built from the "index.tpl" template, into which one of the other templates is then included.
  • templates/(name)/m/ - Contains all template files for the mobile interface ("m" = "mobile" ;))
  • templates/(name)/nli/ - Contains all template files for the not logged in area ("nli" = "not logged in"). Pages are built here, just like in the logged in area ("li") from the "index.tpl" template, into which another template is included.
  • templates/(name)/share/ - Contains the template files for the webdisk share.
  • templates/(name)/style/ - Contains all stylesheet files for the template:
  • dialog.css - Used in popups and layers.
  • dtree.cs - Stylesheet for the folder tree in the email area.
  • loggedin.css - Used only in the logged in area.
  • notloggedin.css - Used only in the not logged in area.
  • print.css - Used for printing an email.
  • share.css - Used for webdisk sharing.

So, in a way, the "index.tpl" files in the "li" and "nli" folders are for the logged-in and non-logged-in areas, respectively. In most cases only a modification of the two "index.tpl" templates and the stylesheets as well as the exchange of some graphics are necessary to let b1gMail appear in a completely different garb.

In 99.99% of the cases it is a good idea to use an existing template as a template and modify it instead of writing all templates from scratch.