Customize view page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mmesonero
Posts: 3
Joined: 04 Jul 2008, 08:19

Customize view page

Post by mmesonero »

i have created a customfield.
name=IdentifiantClient
Type=string


then i followed this guide -> http://www.mantisbt.org/wiki/doku.php/m ... ssues_page
and added the value array ('selection', 'edit', 'priority', 'id', 'bugnotes_count', 'category', 'severity', 'status', 'last_updated', 'summary', 'custom_IdentifiantClient'); for the configuration option "view_issues_page_columns"

After added this configuration option I've in the Configuration Report Page :
view_issues_page_columns string 'array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );'

But when I display my View Issues Page I have the followed error
SYSTEM WARNING: array_keys() [function.array-keys]: The first argument should be an array
SYSTEM WARNING: Invalid argument supplied for foreach()

I'm on Mantis 1.1.2
Can you help me? I don't what I'm doing wrong :(
Thank you
mmesonero
Posts: 3
Joined: 04 Jul 2008, 08:19

Re: Customize view page

Post by mmesonero »

I've found my mistake. I don't use the "=" sign to define the option's value.

However I've another question. Is it possible to inherit customization view page from a project. I explain myself.
I've have a lot of project in my Mantis which are sub-project of a single one big project. So I would like to know if it's possible to define a customize view page on this project and that all sub-projects inherits from this one. Because I've about 50 sub-projects ;-) and it'll be a lot of work to define view for all the projects.
artgroup
Posts: 29
Joined: 02 Jul 2008, 12:35

Re: Customize view page

Post by artgroup »

I'm interested to the same inherits features.

is there this possibility?
Chris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Customize view page

Post by vzw614 »

I think the only thing you'll need to do is to 'link' your custom field to all of the projects you want it to show up in. Manage -> Manage Custon Field -> Click on your custom field -> Link Custom Field to Project (bottom of the screen).
mmesonero
Posts: 3
Joined: 04 Jul 2008, 08:19

Re: Customize view page

Post by mmesonero »

Hello vzw614,

I already have linked my custom field to all my projects but unfortunately it doesn't work. My sub-projects don't inherit the custom definition for the view page from the parent project.
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Customize view page

Post by vzw614 »

In Manage -> Manage Custom Fields -> your field which check boxes do you have checked (display only on advanced, display when....)

I just tested on my install and when I link the custom field it then appears in the "view issue" page of what ever projects I've added it to. I even removed it from the parent project and it still appears in the child projects.
amasse
Posts: 1
Joined: 29 Jul 2008, 12:29

Re: Customize view page

Post by amasse »

Hi mmesonero,

Can you write the string that you put in the value's option ?

I have the same error and I use mantis 1.1.2.

I was trying :

array ( selection, edit, priority, id)

= array ( selection, edit, priority, id)

array = ( selection, edit, priority, id)

view_issues_page_columns = array ( selection, edit, priority, id)

Thanks
Matze2
Posts: 8
Joined: 30 Jul 2008, 15:24

Re: Customize view page

Post by Matze2 »

Hi,

I also have problem with the configuration of view_issues_page_columns, I iget the same error as mentioned in the first post.
I created this like mentioned in the Howto for 1.1.2.

The strange thing about this is that the value for the configration does not look OK. There are apostrophes around the value.

'array ( selection, edit )'

Also see the attached screenshot.

I think this could explain the error messages...

Thanks for a short answer.
Regards from Frankfurt
Attachments
mantis.jpg
mantis.jpg (5.22 KiB) Viewed 17307 times
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Customize view page

Post by vzw614 »

The single quotes go around each of the options, not the outside array..

= array ('selection', 'edit' )

Look in config_defaults_inc.php for how to use the array.
Matze2
Posts: 8
Joined: 30 Jul 2008, 15:24

Re: Customize view page

Post by Matze2 »

Hi,

yes, that is exactly the point. There are these single qoutes outside the array, BUT these single quotes are not from me.

I inserted the config in the gui like this:

array ( selection, edit )

or like this

array ( 'selection', 'edit' )

The result is shown in the screenshot, so I get single quotes around the whole stuff:

'array ( 'selection', 'edit' )'

But these are not from me...

Any idea

Thanks
Matze2
Matze2
Posts: 8
Joined: 30 Jul 2008, 15:24

Re: Customize view page

Post by Matze2 »

Thank you... the workaroud seems to work...

Regards from Frankfurt
Matze
Post Reply