Changes between Version 21 and Version 22 of DeveloperGuidelines/Themes


Ignore:
Timestamp:
01/05/15 14:46:24 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Themes

    v21 v22  
    1010== Default Theme ==
    1111By default these files are used:
    12 * {{{/private/templates/default/views/layout.html}}}
     12* {{{/modules/templates/default/views/layout.html}}}
    1313* {{{/static/img}}}
    1414in non-Debug mode:
    1515* {{{/static/themes/default/eden.min.css}}}
    1616in Debug mode:
    17 * {{{/private/templates/default/css.cfg}}}
     17* {{{/modules/templates/default/css.cfg}}}
    1818* {{{/static/themes/default/layout.css}}}
    1919* {{{/static/themes/default/reset.css}}}
     
    2929
    3030To create a new theme:
    31 1. Specify the Theme name in your template's {{{/private/templates/<templatename>/config.py}}}:
     311. Specify the Theme name in your template's {{{/modules/templates/<templatename>/config.py}}}:
    3232 * {{{settings.base.theme = "themename"}}}
    33331. Create a new folder to hold the theme elements:
     
    36361. If not already using a template create one: {{{/private/templates/<templatename>}}}
    37371. Create these files in your templates folder:
    38  * {{{/private/templates/<templatename>/__init__.py}}} - this can be empty but must be present.
    39  * {{{/private/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by the Build script ({{{static/scripts/tools/build.sahana.py}}}) into:
     38 * {{{/modules/templates/<templatename>/__init__.py}}} - this can be empty but must be present.
     39 * {{{/modules/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by the Build script ({{{static/scripts/tools/build.sahana.py}}}) into:
    4040  * {{{/static/themes/<themename>/eden.min.css}}}
    41  * {{{/private/templates/<templatename>/views/layout.html}}} - overall layout of the HTML.
     41 * {{{/modules/templates/<templatename>/views/layout.html}}} - overall layout of the HTML.
    4242
    4343Note that all CSS files should be able to find their images both in debug mode & when compressed into eden.min.css - this is normally done by having the files at the same depth in the tree.