Changes between Version 7 and Version 8 of DeveloperGuidelines/Themes
- Timestamp:
- 06/23/12 17:02:11 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Themes
v7 v8 14 14 * {{{/private/templates/default/views/layout.html}}} 15 15 * {{{/private/templates/default/views/load.html}}} 16 * {{{/static/img}}} 16 17 in non-Debug mode: 17 * {{{/static/themes/default/ css/sahana.min.css}}}18 * {{{/static/themes/default/eden.min.css}}} 18 19 in Debug mode: 19 20 * {{{/private/templates/default/css.cfg}}} 20 * {{{/static/themes/default/ css/layout.css}}}21 * {{{/static/themes/default/layout.css}}} 21 22 * {{{/static/themes/default/reset.css}}} 22 23 * {{{/static/themes/default/layout.css}}} … … 33 34 1. Specify the Theme name in your template's {{{/private/templates/<templatename>/config.py}}}: 34 35 * {{{settings.base.theme = "themename"}}} 35 1. Create new foldersto hold the theme elements:36 * {{{/static/themes/<themename> /css}}} which will usually contain these files: {{{layout.css}}}, {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used)36 1. Create a new folder to hold the theme elements: 37 * {{{/static/themes/<themename>}}} which will usually contain these files: {{{layout.css}}}, {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used) 37 38 * {{{/static/themes/<themename>/img}}} 38 39 1. If not already using a template create one: {{{/private/templates/<templatename>}}} … … 40 41 * {{{/private/templates/<templatename>/__init__.py}}} - this can be empty but must be present. 41 42 * {{{/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: 42 * {{{/static/themes/<themename>/ css/sahana.min.css}}}43 * {{{/static/themes/<themename>/eden.min.css}}} 43 44 * {{{/private/templates/<templatename>/views/layout.html}}} - overall layout of the HTML. 44 45 45 NB Production sites who wish to compile their code either need to hardcode the theme name in their {{{views/layout.html}}} or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32) or newer 46 Note that all CSS files should be able to find their images both in debug mode & when compressed into eden.min.css 47 48 NB Production sites who wish to compile their code either need to hardcode the theme name in their {{{views/layout.html}}} or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32), or newer. 46 49 47 50 === Ext Theme ===