|
List Info
Thread: Another crack at a bugfix for Searching...
|
|
| Another crack at a bugfix for
Searching... |

|
2006-09-08 03:16:11 |
|
|
I previously sent an email about a bug in searching. Well,
I've updated the code required to fix that bug, and this email is the latest
version.
First, add the following new method to QualifiedTopicName in
FlexWikiEngine:
public QualifiedTopicRevision
AsTopicRevision() { return new
QualifiedTopicRevision(this); }
With that in place,
modify Search.aspx.cs as
follows:
1) Modify line 121
of Search.aspx.cs to use (QualifiedTopicNameCollection) instead of (ArrayList)
as the type cast.
2) Modify line 121
of Search.aspx.cs to use QualifiedTopicName instead
of QualifiedTopicRevision as the variable type.
3) Modify lines
140-143 to the following:
if
(Regex.IsMatch(each, search,
RegexOptions.IgnoreCase)) { Response.Write(Formatter.FormattedString(topic.AsTopicRevision(), each,
OutputFormat.HTML, storeManager, TheLinkMaker)); }
This will convert
the TopicName to a TopicRevision before calling the
Formatter.
4) Finally,
add the following line under the "using" section at the top of the
Search.aspx.cs file:
using
FlexWiki.Collections;
There are some more bugs in here, particularly in the
formatting of the results. But that's it for now.
Scott
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|