Tags:
create new tag
view all tags

SID-01027: table sort on column with links to topics in 5.0.1

Status: Answered Answered TWiki version: 5.0.1 Perl version:
Category: TablePlugin Server OS: Last update: 13 years ago

Hi,

I recently upgraded a twiki 4.1.2 installtion to 5.0.1.

on:

https://infoshare.dtv.dk/twiki/bin/view/OrbitHelp/WebHome

we do some table sorting on the first columnt which contains links to topics (like [[TopicHere][some free text here]]).

in 4.1.2 this sorted on the string "some free text here", now it sorts on the string "[[TopicHere][some free text here]]"

can that be changed somehow?

Best regards, Lasse Aagren

-- LasseAagren - 2010-11-17

Discussion and Answer

should have been:

.. which contains links to topics (like [[TopicHere][some free text here]])

and:

.. now it sorts on the string "[[TopicHere][some free text here]"

-- LasseAagren - 2010-11-17

Not sure what changed. In any case, the TablePlugin sorts columns by ASCII unless column fields are numeric or dates. That means, you have control over sorting.

You can use CSS to control sorting. For example, if you create a table with a SEARCH and sort that with a TABLE attribute, you can format the SEARCH output like this: format="| <span style='display:none;'>$formfield(Subject)</span> [[$topic][$formfield(Subject)]] |" -- note that the display:none hides the first form field value; the TABLE sort picks that up to sort by the "Subject" form field.

Details: VarSEARCH, FormattedSearch, TablePlugin

-- PeterThoeny - 2010-11-17

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2011-01-04

      Change status to:
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.
SupportForm
Status Answered
Title table sort on column with links to topics in 5.0.1
SupportCategory TablePlugin
TWiki version 5.0.1
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-01-04 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.