|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
index server search results page formatting
apologies if i have posted in the wrong place but i didn't know where else this would fit...
i'm working on a site that uses MS index server for its search feature. i'm trying to format the results page which is a html extension file (.htx) i am having 2 problems: 1) date format: the date each file was last modifed is currently shown as 6/16/03 3:08:54 AM and is obtained using <%Write%> - can i change that to something like dd/mm/yy ? 2)i want to have alternating colour rows for the result list table. i could do that easily in asp, and i know i can still use if and else statements in the .htx file but there seems to only be a very limited set of operators allowed: http://msdn.microsoft.com/library/d...uwebqy_6xun.asp - are division and modulus operations possible? better again, is this feature already there so i only need to include a special tag/attribute? any advice would be greatly appreciated! Last edited by fizzy : July 30th, 2003 at 09:11 AM. |
|
#2
|
||||
|
||||
|
is the htx file in a standard text format? if it is you should be able to read it in and parse the rows into an array and deal with it more effectively. don't know if that will work, but its worth a try
|
|
#3
|
||||
|
||||
|
thanks for the reply.
here is the code for the .htx file: Code:
<html><head><body>
<p>Number of documents found:<%CiMatchedRecordCount%></p>
<table border="0" cellpadding="1" cellspacing="1"><tr>
<td>Document</td>
<td>Date</td>
<td>Size</td>
<td>Score</td>
</tr>
<%begindetail%>
<tr>
<td><a href="<%EscapeURL vpath%>"><%if DocTitle ISEMPTY%><%Filename%><%else%><%DocTitle%><%endif%></a></td>
<td><%write%></td>
<td><%size%></td>
<td><%rank%></td>
</tr>
<%enddetail%>
<%if CiMatchedRecordCount GT 0%></table><%endif%>
</body></html>
I'm not sure how I would go about parsing this! I know so little about what I'm doing I don't know whether that would help me ![]() My basic problem is that there is no looping going on to create the results table; the <%begindetail%> and <%enddetail%> just gets processed for each result so there seems to be no way to format individual cells differently? I was hoping there might be other tags you could use that would give more flexibility?? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > index server search results page formatting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|