Changes between Version 6 and Version 7 of DeveloperGuidelines/Templates


Ignore:
Timestamp:
06/22/12 14:17:18 (9 years ago)
Author:
Fran Boon
Comment:

Move out Themes

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Templates

    v6 v7  
    2626
    2727== Prepopulate Data ==
    28 Prepopulate options are defined in the template's config.py (ut can be overridden in the running 000_config.py):
     28Prepopulate options are defined in the template's config.py (but can be overridden in the running 000_config.py):
    2929* DeveloperGuidelines/PrePopulate
    3030
    3131== Theme ==
    32 === Default ===
    33 By default these files are used:
    34 * /private/templates/default/views/layout.html
    35 in non-Debug mode:
    36 * /static/styles/default/sahana.min.css
    37 in Debug mode:
    38 * /private/templates/default/style.cfg
    39 * /static/styles/default/layout.css
    40 * /static/styles/S3/sahana.css
    41 
    42 === User Theme ===
    43 Optionally a template's config.py (or running 000_config.py) can specify a 'theme' folder (usually the same as the template folder), so that these are used instead:
    44 * /private/templates/<theme>/views/layout.html
    45 in non-Debug mode:
    46 * static/styles/<theme>/sahana.min.css
    47 in Debug mode:
    48 * /private/templates/<theme>/style.cfg
    49 * /static/styles/<theme>/layout.css
    50 * /static/styles/S3/sahana.css (this file should generally not be changed by deployments)
    51 * /static/styles/<theme>/style.css (for overrides to core CSS)
    52 
    53 By convention, suporting files specific to this theme should be placed in:
    54 * static/styles/<theme>/*.css
    55 * static/img/<theme>/*.png
    56 
    57 sahana.min.css gets built from style.cfg by static/scripts/tools/build.sahana.py
    58 
    59 NB Production sites who wish to compile their code either need to hardcode the theme name in their views/layout.html & views/style.html or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32) or newer
     32DeveloperGuidelines/Themes
    6033
    6134=== !ToDo ===