r1 - 05 Nov 2003 - 14:10:00 - SamHaslerYou are here: TWiki >  Codev Web > MultipleSearchesInSameTopic > BetterSearchOutputFormatting
Tags:
, create new tag
To make it easier to format results with multiple hits per topic I would like to propose the following additional parameters: topicheader, topicseparator topicfooter and footer. Search results would then output these parameters in the following order:

<header>
   <topicheader>
      <format>
      <separator>
      <format>
      <separator>
      .
      .
      <format>
   <topicfooter>
   <topicseparator>
   <topicheader>
      <format>
      <separator>
      <format>
   <topicfooter>
   <topicseparator>
   .
   .
   .
   <topicfooter>
<footer>

The naming and use of separator and topicseparator is choosen for backwards compatibility with current usage.

It would be useful to have the extra variables:

  • $count - the number of hits in a topic. It would not be valid in header, topicseperator or footer
  • $totalcount - the total number of hits (valid in all parameters)

-- SamHasler - 05 Nov 2003

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo