Changes between Version 21 and Version 22 of DeveloperGuidelines/Themes
- Timestamp:
- 01/05/15 14:46:24 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Themes
v21 v22 10 10 == Default Theme == 11 11 By default these files are used: 12 * {{{/ private/templates/default/views/layout.html}}}12 * {{{/modules/templates/default/views/layout.html}}} 13 13 * {{{/static/img}}} 14 14 in non-Debug mode: 15 15 * {{{/static/themes/default/eden.min.css}}} 16 16 in Debug mode: 17 * {{{/ private/templates/default/css.cfg}}}17 * {{{/modules/templates/default/css.cfg}}} 18 18 * {{{/static/themes/default/layout.css}}} 19 19 * {{{/static/themes/default/reset.css}}} … … 29 29 30 30 To create a new theme: 31 1. Specify the Theme name in your template's {{{/ private/templates/<templatename>/config.py}}}:31 1. Specify the Theme name in your template's {{{/modules/templates/<templatename>/config.py}}}: 32 32 * {{{settings.base.theme = "themename"}}} 33 33 1. Create a new folder to hold the theme elements: … … 36 36 1. If not already using a template create one: {{{/private/templates/<templatename>}}} 37 37 1. 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: 40 40 * {{{/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. 42 42 43 43 Note 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.