Tags:
create new tag
view all tags

Question

I'm trying to exclude from sorting several columns in a table. Such columns may contain unsortable items (e.g. images) or items that make no sense to sort by. Here's a sample table:

Name Description Age Rating
Mike he's cool 23 smile
John John's fun 21 indifferent
Tim smart guy 30 frown

Apparently, columns become sortable only if ALL columns are between * characters. In the table above I have only 2 columns between *s, and that breaks both sorting and the "header" look, even if headerrows is set to 1.

Is there a way to exclude columns from sorting?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Plugins

-- DanDascalescu - 23 Mar 2007

Answer

sorting is done by the TablePlugin - if there isn't anything doccoed there, I guess not :/ - you chould raise a reature request on TablePluginDev.

-- SvenDowideit - 28 Apr 2007

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Sorting only works for tables with complete header rows. This is implied in the documentation: "Click on column heading text to sort by a column. Initial column will be sorted in descending order, click again to get ascending order."

There is currently no way to exclude a column from sorting.

-- PeterThoeny - 28 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-04-28 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.