PDA

View Full Version : [Solved] Help for: add visible extra field from .issue table


NickyNet
05-28-2010, 05:19 PM
EDIT: GOT IT
you can delete this thread if you wish!


hi guys and girls,

as i'm working on the translation of vB stuff from english to serbian..
i using PT, where i imported everyone single phrase into it..
where our users can help to translate..

1.)
i have added an extra field named "phrasetype" into the "issue" table.

i changed in class_pt_issuelist
var $extra_fields = '';to
var $extra_fields = ',issue.phrasetype';note: without "comma" i'm getting mysql error

added

case 'phrasetype':
$this->sort_field = $sort_field;
$this->sort_field_sql = "issue." . $sort_field;
break;and to the "$sort_arrow = array("
'phrasetype' => '',i think sorting is working (i think so!) when i add manually "sort=phrasetype"
project.php?do=issuelist&projectid=3&issuetypeid=task&sort=phrasetype&order=asc&page=52into the URL field, where paging is working with it..

but have no idea how can i add this column into the issulist, which can be visible and sortable like "Title / Submitted by" and other columns.


2.) the next would be i would have the text from the field "phrasetype" at the issue self anywhere after the title of the issue..

can someone help me in this matter?

thank you in advance and wish you a nice weekend!

cheers
Nicky