gtd-php
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 09, 2010, 02:58:34 AM

Login with username, password and session length
Search:     Advanced search
1756 Posts in 305 Topics by 425 Members
Latest Member: joey_ser33
* Home Help Search Calendar Login Register
+  gtd-php
|-+  gtd-php
| |-+  gtd-php users
| | |-+  Hide particular columns?
« previous next »
Pages: [1] Print
Author Topic: Hide particular columns?  (Read 859 times)
rlwpub
Full Member
***
Posts: 21


View Profile
« on: December 11, 2008, 02:23:20 AM »

Is there any way to hide particular columns in the different list views on 0.9?
Logged
Andrew
Administrator
Hero Member
*****
Posts: 375


View Profile
« Reply #1 on: December 11, 2008, 03:54:36 AM »

Yes.  There are two ways. If you are using the ajax addon, you can click in the eye icon in the top-left corner of the table, and re-order, show, and hide columns on the listItems page.  This will only alter it for the current page on this view - when you refresh, it will revert to defaults.  You can use this if you wanted to, say, create a custom print of a list.

Or if you're comfortable tweaking the source code, look for the array called $show, as that's what's used to set visibility: e.g. $show['dateCompleted'] sets the visibility of the "Date Completed" column.
Logged
rlwpub
Full Member
***
Posts: 21


View Profile
« Reply #2 on: December 11, 2008, 09:54:47 PM »

The problem seems to be with Firefox 3.04 running under Ubuntu Linux. I just tried Flock and all the problems I posted about seem to have cleared up.

GTD-PHP looks completely different and better in Flock and looks like a .8 version in Firefox.
Logged
redtricycle
Full Member
***
Posts: 16


View Profile
« Reply #3 on: November 02, 2009, 02:14:37 PM »

I did a search and wanted to add more to this thread...sorry for bumping it up, but it could be helpful to others who search too.

"Or if you're comfortable tweaking the source code, look for the array called $show, as that's what's used to set visibility: e.g. $show['dateCompleted'] sets the visibility of the "Date Completed" column."

For reference, edit displayItems.inc.php and add at the top:
Code:
<?php
  
unset($show['timeframe']); //Hide the Time Context Column
  
unset($show['recurdesc']); //Hide the Repeat Column
?>


Ajax addon will allow you to unhide these.
Logged
Andrew
Administrator
Hero Member
*****
Posts: 375


View Profile
« Reply #4 on: November 19, 2009, 01:19:18 AM »

yes, setting them to false should work too (and may work better, in that there won't be any warnings about absent index keys.
Logged
jhr
Full Member
***
Posts: 30


View Profile
« Reply #5 on: December 18, 2009, 05:04:28 PM »

see https://www.hosted-projects.com/trac/toae/gtdphp/ticket/589

It just looks for empty columns and tells the disparray not to show them if there is nothing show.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!