Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0021113mantisbtplug-inspublic2025-03-05 13:06
Reporteratrol Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version2.28.0Fixed in Version2.28.0 
Summary0021113: 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

Tagsmodern-ui

Relationships

related to 0022117 closedatrol Neither top_include_page not bottom_include_page used in v2.0 
related to 0022098 resolvedcommunity Setting bottom_include_page does not include specified file 
related to 0023032 new Mantis Logo not showing on 2.5.0 
related to 0023210 assignedcproensa Customization of navbar 

Activities

dregad

dregad

2016-06-15 07:17

developer   ~0053381

And also the custom header ($g_top_include_page) will no longer be displayed

syncguru

syncguru

2016-08-17 23:25

developer   ~0053843

PR: https://github.com/mantisbt/mantisbt/pull/860

cas

cas

2017-02-07 10:45

reporter   ~0055545

yep, a lot of work for us, plugin creators.....

Xenos

Xenos

2017-04-15 06:29

reporter   ~0056559

Is there an alternative event to use in place of EVENT_LAYOUT_PAGE_HEADER ?

SteveA

SteveA

2017-07-23 12:26

reporter   ~0057301

Last edited: 2025-02-17 11:53

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.

Xenos

Xenos

2017-07-24 08:11

reporter   ~0057313

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 defer="defer" attribute on the script node, or a window.addEventListener('DOMContentLoaded', function () { ... }) in the script itself to trigger your node insertion after the page loading.

SteveA

SteveA

2018-06-17 06:30

reporter   ~0060096

Using Javascript to fix this missing functionality isn't a solution

Do we know when this problem is going to be addressed?

SteveA

SteveA

2018-09-01 12:09

reporter   ~0060583

Is there a planned fix date for this?

Last update was in February when the version was pushed out beyond 2.12.0

estomagado

estomagado

2019-02-08 17:12

reporter   ~0061456

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.

estomagado

estomagado

2019-02-08 17:17

reporter   ~0061457

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.

cas

cas

2019-02-09 04:21

reporter   ~0061459

So add it yourself, is a one off task (for each new release) and pretty simple.

dregad

dregad

2025-03-05 13:01

developer   ~0069940

PR https://github.com/mantisbt/mantisbt/pull/2102

Related Changesets

MantisBT: master 2ebef4ea

2025-03-05 12:56

dregad


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