View Issue Details

IDProjectCategoryView StatusLast Update
0008374mantisbtfilterspublic2008-11-29 09:45
Reporterbrody Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Product Version1.0.7 
Summary0008374: integration of own filters into the overview page (witch is my home after login)
Description

Is it possible to integrate other selfdefined filters into the overview page?
additionally using custom fields?

I know, how to disable or move in sequence the available filters, but I was not able to integrate new one

TagsNo tags attached.

Activities

jreese

jreese

2007-09-19 10:36

reporter   ~0015662

Last edited: 2007-09-19 10:39

What type of custom filtering are you looking for. Pretty much anything is possible just using the default Advanced Filters page, it just may take some thinking about it to find the optimal usage.

EDIT: Nevermind, I misread the needs of the reporter; he is talking about the My View page. In this case, it's certainly possible, but would reqjire adding / editing the underlying code to add new filters. As far as I know, there is no configurable way of adding new filters.

brody

brody

2007-09-19 11:35

reporter   ~0015663

@JReese: As you're in the developer team could you shortly tell me, where to patch the current code of mantis (V1.0.7) to get this achieved?

jreese

jreese

2007-09-19 16:25

reporter   ~0015665

You would need to alter your configuration to add a new box to the My View page, then you would need to alter core/wy_view_inc.php to create a filter for the new box name you've added. You may need to do more than that, but you can always use my_view_page.php ao a starting point, then trace the code to figure out how everything works, it should be fairly straightforward.

brody

brody

2007-09-20 12:08

reporter   ~0015676

Last edited: 2007-09-20 12:33

@JReese: Thanks for the hint, in general I think, that I understand the patching process and what todo where. But how are the custom fields integrated into such a filter?

FYI:
With internal filters using own statuses I had success to integrate them, but the other question (s. above) is open. Please give as good advice - thanks

jreese

jreese

2007-09-20 13:07

reporter   ~0015677

Custom Fields are a little more difficult to add to filters, but certainly possible. Look at line 1139 of core/filter_api.php to see how to add Custom Fields to your filter array, and replicate that for your custom filter in core/my_view_inc.php