[Done] Add a custom field to project edit php/SQL

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
laurent
Posts: 3
Joined: 24 Aug 2009, 15:46

[Done] Add a custom field to project edit php/SQL

Post by laurent »

Hi all,

Sorry if the question has already been answered, I didn't find it with the search.
I am really new to Mantis (and also web developpment).

I would like to add a custom field to mantis. I have the "manage_proj_edit_page.php" page and the "mantis_project_table" database table where the projects information are stored. Under project name, I would like to insert a project reference, but I don't know how is this possible.

I have copied the php code for the project name request and modified it to add a reference field in the php.
Now I should probably add the reference field to the SQL database using phpmyadmin or am I doing it wrong? How do you do that?

Thanks for your reply!

Laurent
Last edited by laurent on 01 Sep 2009, 15:35, edited 1 time in total.
laurent
Posts: 3
Joined: 24 Aug 2009, 15:46

Re: Add a custom field to project edit php/SQL

Post by laurent »

I have added the field in the SQL database using phpmyadmin. Now I don't know how to make the link between the php field and the SQL database.
laurent
Posts: 3
Joined: 24 Aug 2009, 15:46

Re: Add a custom field to project edit php/SQL

Post by laurent »

Ok, it works. I have copied the way it is done for the project name in:
-project_api.php
-mc_api.php
-manage_proj_create_page.php
-manage_proj_update.php
Post Reply