View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021113 | mantisbt | plug-ins | public | 2016-06-15 06:03 | 2025-03-05 13:06 |
Reporter | atrol | Assigned To | community | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0021113: EVENT_LAYOUT_PAGE_HEADER no longer available | ||||
Description | function html_top_banner is no longer called in current code, so plugins will not be able to hook event EVENT_LAYOUT_PAGE_HEADER | ||||
Tags | modern-ui | ||||
related to | 0022117 | closed | atrol | Neither top_include_page not bottom_include_page used in v2.0 |
related to | 0022098 | resolved | community | Setting bottom_include_page does not include specified file |
related to | 0023032 | new | Mantis Logo not showing on 2.5.0 | |
related to | 0023210 | assigned | cproensa | Customization of navbar |
And also the custom header ($g_top_include_page) will no longer be displayed |
|
yep, a lot of work for us, plugin creators..... |
|
Is there an alternative event to use in place of EVENT_LAYOUT_PAGE_HEADER ? |
|
Any progress on this. The fix for the missing $g_bottom_include_page and $g_bottom_include_page $g_top_include_page ( bug 0022098 ) is to use a plugin but that wont work because EVENT_LAYOUT_PAGE_HEADER isn't implemented any more. |
|
Using the plugin-code I've shown on 0022098 you may insert a javascript in the meta section, and add any HTML element you want anywhere you want in that javascript. Either use a |
|
Using Javascript to fix this missing functionality isn't a solution Do we know when this problem is going to be addressed? |
|
Is there a planned fix date for this? Last update was in February when the version was pushed out beyond 2.12.0 |
|
Will this be fixed? Because according to this CLOSED pull request, https://github.com/mantisbt/mantisbt/pull/860 this will never be fixed, so I think this bug should be at least closed. People is always landing on this bug and incorrectly assuming this will be fixed someday because the bug is still open. |
|
Also, Corporate Branding policies in many companies (mine included) enforce some level of local branding on all internal systems, so we need some sort of customisation features for that. g_window_title (which still works) is not enough. |
|
So add it yourself, is a one off task (for each new release) and pretty simple. |
|
MantisBT: master 2ebef4ea 2025-03-05 12:56 Details Diff |
Restore included pages functionality - Restored working of top_include_page and bottom_include_page options. - Restored generation of EVENT_LAYOUT_PAGE_HEADER event. - Added dynamic footer resizing. The top_include_page file is included within the navbar element, which is fixed at the top of the page; the bottom_include_page file is included within an existing footer or as a footer itself (on login pages), which is also fixed at the bottom of the page. Because of this, the include template must contain, for example, a div element with a solid background. Fixes 0035402, 0022250, 0022098, 0021113 PR https://github.com/mantisbt/mantisbt/pull/2102 |
Affected Issues 0021113, 0022098, 0022250, 0035402 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - core/html_api.php | Diff File | ||
mod - core/layout_api.php | Diff File | ||
mod - css/ace-mantis.css | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/html.xml | Diff File | ||
mod - js/common.js | Diff File |