Page 1 of 1

How to hide some items

Posted: 16 Feb 2011, 12:27
by nemeckova
Hallo,

Could you advice me how to hide some items (namely reproducibility and severity) in details of issues?

Thank you very much in advance.

Petra

Re: How to hide some items

Posted: 16 Feb 2011, 13:22
by atrol
Do you want to hide the fields in the complete system (which is not possibe for all fields) or just on some pages?

Re: How to hide some items

Posted: 22 Feb 2011, 12:35
by Snorvarg
Hi, I am new to Mantis, and would like to do the same thing; hide some elements in the default view of view issues. (ex. site.com/view.php?id=1)

I found the admin page manage_config_columns_page.php, but it does not seem to work, if I remove some fields in the 'View issue columns', it does not show in the view issues page. I guess I misunderstand the use of the manage_config_columns_page.php page, but if so, where do I change which fields/elements that should be visible?

Re: How to hide some items

Posted: 22 Feb 2011, 15:23
by atrol
Snorvarg wrote:Hi, I am new to Mantis, and would like to do the same thing; hide some elements in the default view of view issues. (ex. site.com/view.php?id=1)
Which elemements do you want to hide? (there is no configuration for all fields)
Snorvarg wrote: I found the admin page manage_config_columns_page.php, but it does not seem to work, if I remove some fields in the 'View issue columns', it does not show in the view issues page. I guess I misunderstand the use of the manage_config_columns_page.php page,
"View Issue Columns" affects the colums displayed in "View Issues" page (view_all_bug_page.php) but not not on the page where a single issue is displayed (view.php)

Re: How to hide some items

Posted: 22 Feb 2011, 15:49
by Snorvarg
Thank's for the response, atrol!
atrol wrote: Which elemements do you want to hide? (there is no configuration for all fields)
I am looking for a general solution, but the following fields are not necessary for me:
Category,
View Status,
Platform,
OS,
OS Version,
Tags + Attach Tags,
atrol wrote: "View Issue Columns" affects the colums displayed in "View Issues" page (view_all_bug_page.php) but not not on the page where a single issue is displayed (view.php)
My question should probably be like this: Is it necessary to alter the view.php page code manually, or is there any way to hide these fields via the administration menu?

Re: How to hide some items

Posted: 22 Feb 2011, 18:17
by atrol
Disabling category is not recommended. I think it is possible but I never tried.
I think removing is not needed, because category is something which every projects needs.
Be aware that removing category will also remove the functionality of auto assigning issues to users based on category.
If you don't like the word "Category" you can customize the messages without changing the source code of MantisBT.

To disable all profile fields (Platform, OS, OS Version) add the followinhg line to file config_inc.php

Code: Select all

$g_enable_profiles = OFF;
To get rid of Tags add the following lines to file config_inc.php

Code: Select all

$g_tag_view_threshold = NOBODY;
$g_tag_attach_threshold = NOBODY;
To disable view status add the following lines to file config_inc.php

Code: Select all

$g_set_view_status_threshold = NOBODY;
$g_change_view_status_threshold = NOBODY;

Re: How to hide some items

Posted: 23 Feb 2011, 11:37
by Snorvarg
Thanks atrol, it helped me getting started!

I guess people know about this link, but here you can find just about anything about drupal management:
http://docs.mantisbt.org/master/en/admi ... guide.html

Re: How to hide some items

Posted: 23 Feb 2011, 12:27
by atrol
Snorvarg wrote: drupal management:
?? , quite busy ;-)
Seems that my signature is not clear enough when writing "read the Manual"

Re: How to hide some items

Posted: 23 Feb 2011, 13:37
by Snorvarg
atrol wrote:?? , quite busy ;-)
Yes, I am in the middle of setting up environment svn+mantis for a drupal site, so there are alot going on here! :mrgreen:

Re: How to hide some items

Posted: 19 Nov 2012, 14:19
by M@rce
atrol wrote: To disable all profile fields (Platform, OS, OS Version) add the followinhg line to file config_inc.php

Code: Select all

$g_enable_profiles = OFF;
To get rid of Tags add the following lines to file config_inc.php

Code: Select all

$g_tag_view_threshold = NOBODY;
$g_tag_attach_threshold = NOBODY;
To disable view status add the following lines to file config_inc.php

Code: Select all

$g_set_view_status_threshold = NOBODY;
$g_change_view_status_threshold = NOBODY;
Hi, I want to do this but only to a specific project not all, is possible?

Re: How to hide some items

Posted: 19 Nov 2012, 16:25
by atrol
M@rce wrote: Hi, I want to do this but only to a specific project not all, is possible?
It's possible by using the database configuration
"Manage" > "Manage Configiration" > "Configuration Report"

Select Username "All Users"
Select the project you want
Enter the value for "Configuration Option" by removing $g_ from the option name (for example tag_view_threshold)
Choose "Data type" integer
Search core/constant_inc.php for the right value (for example NOBODY = 100 , OFF = 0)
Do NOT enter something like NOBODY!

Re: How to hide some items

Posted: 19 Nov 2012, 17:06
by M@rce
atrol wrote: Search core/constant_inc.php for the right value (for example NOBODY = 100 , OFF = 0)
Do NOT enter something like NOBODY!
@Atrol: If I don't have any entry in constant_inc.php or core.php file, is only create one entry for each option? in both?
Thanks.

Re: How to hide some items

Posted: 19 Nov 2012, 20:10
by atrol
M@rce wrote:@Atrol: If I don't have any entry in constant_inc.php or core.php file, is only create one entry for each option? in both?
Thanks.
I have no idea what you mean with this.

Re: How to hide some items

Posted: 20 Nov 2012, 12:23
by M@rce
atrol wrote:I have no idea what you mean with this.
@Atrol: Sorry, maybe was a wrong interpretation...when you say "search core/constant_inc.php for the right value" is not "searching for" but "register in"?
Thanks.

Re: How to hide some items

Posted: 28 Aug 2013, 04:40
by seizai
What if I want hide severity, priority & tags from whole system?

I hide those on report page but it still show on some pages... quite annoying