SID-01027: table sort on column with links to topics in 5.0.1
Status: |
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
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.