SID-01850: Search form fails to close header row
Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
5.14.2 |
Category: |
CategorySearch |
Server OS: |
Debian 7.3 |
Last update: |
8 years ago |
The code below is a simplified version of that used on a page to list all users. This code was used without problem on TWiki V5, but in V6 the header row has no closing header row (
/hr
) tag. The result is that the first row of data appears on the header line after (to the right of) the headers themselves.
%SEARCH{
"META:FORM.*[U]serForm;META:FIELD.*Name.*value="\w*%URLPARAM{"search" encode="quote"}%\w*"%IF{"'%URLPARAM{"IncludeInactive" encode="quote"}%' != 'yes'" then=';META:FIELD.*AccountStatus.*value="Active"'}%"
type="regex"
nosearch="on"
excludetopic="UserList"
header="| ** | *Name* | *Contact* | *Location* | *Staff Type* |"
format="|a|b|c|d|e|"
excludetopic="*Template"
}%
--
Keith Edmunds - 2014-01-02
Discussion and Answer
This is odd. I just checked on the latest TWiki-6.0 and it works as expected. A raw view on the HTML shows the closing
tr
tag on the header row.
--
Peter Thoeny - 2014-01-02
This is specifically TWiki-6.0.0, Mon, 14 Oct 2013, build 26523, Plugin API version 6.00 - is that the version you're testing?
--
Keith Edmunds - 2014-01-03
I tested with the SVN trunk version, which currently is identical to the 6.0.0 release in regards to search.
--
Peter Thoeny - 2014-01-05
We have two TWiki installations. The identical source page works on
TWiki-5.1.0, Sat, 20 Aug 2011, build 22128, Plugin API version 1.4 but fails on
TWiki-6.0.0, Mon, 14 Oct 2013, build 26523, Plugin API version 6.00.
Any suggestions as to how to proceed?
--
Keith Edmunds - 2014-01-05
This is the generated HTML that we see:
<table cellspacing="0" id="table1" cellpadding="0" class="twikiTable" rules="all" border="1">
<tr class="twikiTableOdd twikiTableRowdataBgSorted0 twikiTableRowdataBg0">
<th bgcolor="#687684" valign="top" class="twikiTableCol0 twikiFirstCol"> <font color="#ffffff"></font> </th>
<th bgcolor="#687684" valign="top" class="twikiTableCol1"> <font color="#ffffff">Name</font> </th>
<th bgcolor="#687684" valign="top" class="twikiTableCol2"> <font color="#ffffff">Contact</font> </th>
<th bgcolor="#687684" valign="top" class="twikiTableCol3"> <font color="#ffffff">Location</font> </th>
<th bgcolor="#687684" valign="top" class="twikiTableCol4"> <font color="#ffffff">Staff Type</font> </th>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol5"> </td>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol6"> a </td>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol7"> b </td>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol8"> c </td>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol9"> d </td>
<td bgcolor="#ffffff" valign="top" class="twikiTableCol10 twikiLastCol"> e </td>
</tr>
<tr class="twikiTableEven twikiTableRowdataBgSorted1 twikiTableRowdataBg1">
<td bgcolor="#edf4f9" valign="top" class="twikiTableCol0 twikiFirstCol"> a </td>
<td bgcolor="#edf4f9" valign="top" class="twikiTableCol1"> b </td>
<td bgcolor="#edf4f9" valign="top" class="twikiTableCol2"> c </td>
<td bgcolor="#edf4f9" valign="top" class="twikiTableCol3"> d </td>
<td bgcolor="#edf4f9" valign="top" class="twikiTableCol4 twikiLastCol"> e </td>
</tr>
I really have no idea where to go from here! Any suggestions?
--
Keith Edmunds - 2014-01-13
Really strange. The closing
tr
tag is present in the generated HTML, but you do not show a closing
table
tag. I have no idea.
--
Peter Thoeny - 2014-01-13
No, that's not the problem, Peter. I should have explained that the above is only a partial extract; the closing
table
tag is present on the page.
The problem is there is no closing
tr
tag on the header row.
--
Keith Edmunds - 2014-01-13
I've found the cause of this problem: the
TopicCryptPlugin. With that plugin disabled, this problem does not manifest.
What's the best way forwards from this point?
--
Keith Edmunds - 2014-01-27
I've reported this on the plugin page at
http://twiki.org/cgi-bin/view/Support/SID-01863.
--
Keith Edmunds - 2014-01-30
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!
--
Peter Thoeny - 2015-12-03
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.