edit Tablebody

radiator007 - February 23, 2009 - 14:39
Project:DataBase File Manager
Version:5.x-4.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello, i try to edit the the right Table where you can see the filenames.
i found the query for this the Table ( $qdir_contents = db_query("sql") on line 2210 in the dbfm.module). so i can chance the code but i will only show me an other field as the fname in the Table body.

my question, where can i add a other column in the tableview how you can see Name, Modified and Size. or for modified a other...
sorry for my english, i hope you can understand me

#1

geoff_eagles - February 23, 2009 - 15:09

Hi Daniel,

If you follow the code from the SQL query you've found you'll see I actually transfer the data from the server to the client around about line 948. The client-side javascript then formats and displays it. I'm afraid adding an extra column's quite a bit of work - most of it is javascript rather than PHP!

Merely changing what appears in the 'modified' column isn't as difficult - try changing the code in the module file so that $dd->m, $vd->m and $fd->m point to your preferred field and change the header information in the javascript.

Good luck

Geoff

 
 

Drupal is a registered trademark of Dries Buytaert.