mantisbt:page_template_requirements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mantisbt:page_template_requirements [2007/05/27 14:48] – comment on per project templates with different fields thraxisp | mantisbt:page_template_requirements [2011/11/16 07:37] (current) – The page rendering was broken (maybe since new PHP version on mantisbt.org). Added new line to fix it at end of file. atrol | ||
---|---|---|---|
Line 21: | Line 21: | ||
Development of this feature will be done on a branch from the 1.1 stream. This will allow normal development to proceed while the core is reworked. The code will eventually be folded back into the main stream. The branch is labelled ' | Development of this feature will be done on a branch from the 1.1 stream. This will allow normal development to proceed while the core is reworked. The code will eventually be folded back into the main stream. The branch is labelled ' | ||
- | ===== Database Changes | + | ==== Database Changes ==== |
* none should be required | * none should be required | ||
- | ===== Template Construction | + | ==== Template Construction ==== |
* templates will be created to split up the functionality on the pages to reasonable size parts. In general, common sections will be placed into separate files. For example, the template for the bug page will be split up as follows: | * templates will be created to split up the functionality on the pages to reasonable size parts. In general, common sections will be placed into separate files. For example, the template for the bug page will be split up as follows: | ||
* page header | * page header | ||
Line 39: | Line 39: | ||
* Details of template form and construction can be found [[page_template_construction|here]]. | * Details of template form and construction can be found [[page_template_construction|here]]. | ||
- | ===== File Structure | + | ==== File Structure ==== |
|- mantis | |- mantis | ||
+ core | + core | ||
Line 65: | Line 65: | ||
| +- page.php | | +- page.php | ||
- | ===== Configuration ===== | + | ==== Configuration ==== |
+ | |||
+ | * $g_c_template_path - path to writable compiled templates directory | ||
+ | |||
+ | * $g_theme_default - default theme to use | ||
+ | * $g_theme_override - override theme to use (usually set in a project or user) | ||
+ | * $g_hide_fields = ''; | ||
+ | |||
+ | ==== Implementation Log ==== | ||
+ | * [[page template todo|To Do List / Log]] | ||
===== Other Changes ===== | ===== Other Changes ===== | ||
* The installer needs to be updated to create and check that the appropriate directories have been created. Note that the compiled templates need to be erased if the source files change. | * The installer needs to be updated to create and check that the appropriate directories have been created. Note that the compiled templates need to be erased if the source files change. | ||
+ | |||
===== Feedback ===== | ===== Feedback ===== | ||
Line 118: | Line 129: | ||
* Having a theme per project is useful so that administrators can hide fields for different projects. | * Having a theme per project is useful so that administrators can hide fields for different projects. | ||
* As currently implemented, | * As currently implemented, | ||
+ | * Having a theme per project may be used for branding. | ||
+ | * The configuration system may handle this by finding the theme associates with ' | ||
+ |
mantisbt/page_template_requirements.1180291724.txt.gz · Last modified: 2008/10/29 04:32 (external edit)