View Issue Details

IDProjectCategoryView StatusLast Update
0025886mantisbtadministrationpublic2019-07-05 18:50
Reporterspmeesseman Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
Product Version2.21.1 
Summary0025886: Custom pages per project
Description

Is there a way to display a custom page for only a certain project?

I tried something like this below in config_inc, but it errors when it gets down to making some database calls under the hood in helper_get_current_project(), not even sure if it was meant to call functions from config.inc, but just tried:

if (helper_get_current_project() == 1)
{
$g_main_menu_custom_options = array(
array(
'title' => 'NPM Registry',
'access_level' => UPDATER,
'url' => 'plugin.php?page=IFramed/main&url=https://npm.my.domain.com',
'icon' => 'fa-registered'
)
);
}

TagsNo tags attached.

Activities

atrol

atrol

2019-06-26 01:46

developer   ~0062319

config_inc.php ist not the right place to implement application logic, as the core system is not loaded at this time.
config_inc.php should just be used to set configuration options.

You would have to write a plugin that uses EVENT_MENU_MAIN to get what you want.

spmeesseman,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).