Function: RenderTableSearchResults

16 September 2025 - 18:27 | Version 8 |
Generic table display for search results

Documentation

TODO

Parameters
  • BASESEARCH - REQUIRED: Base search string (in DBCachePlugin DBQUERY format). For example: name = '.*' - e.g. finds all topics.
  • EXCLUDE - Option regex for results to exclude. Defaults to \bWeb* - e.g. excludes topics starting with "Web".
  • FACETS - Optional list of facets to use in the filter bar and search results.
  • INITSORT - Optionally set initial sort. Defaults to "modified".
  • INITLIMIT - Optionally set initial limit to # of results. Defaults to "all".
  • SEARCH_FORMAT - Optional setting for different format for search results.
  • HEADER_FORMAT - Optional setting for different format for search results header.
  • FOOTER_FORMAT - Optional setting for different format for search results footer.

Css

Implementation

%STARTINCLUDE%
%TABLE{tablewidth="100%" columnwidths="250px,300px,50px,50px"}%
%DBQUERY{%DBCALL{"%TCAOWEB%.RenderSearchString" 
             BASESEARCH="%IF{"defined BASESEARCH and $'BASESEARCH'!=''" then="$percntBASESEARCH$percnt" else="name = '.*'"}%"
             INITSORT="%IF{"defined INITSORT" then="%INITSORT%" else="modified" }%"
             INITLIMIT="%IF{"defined INITLIMIT" then="%INITLIMIT%" else="all"}%" 
            FACETS="%IF{"defined FACETS" then="%FACETS%" }%"
           }%
    web="%BASEWEB%"
    exclude="%IF{"defined EXCLUDE" then="$percntEXCLUDE$percnt" else="\bWeb*"}%" 
    header="%IF{"defined HEADER_FORMAT" 
                     then="$percntHEADER_FORMAT$percnt"
                     else="| *Topic* | *Summary* | *Modified by* | *On* |$n"
            }%"
   footer="%IF{"defined FOOTER_FORMAT" then="%FOOTER_FORMAT%" else=""}%"
   separator="$n"
   format="%IF{"defined SEARCH_FORMAT" 
                    then="%SEARCH_FORMAT%"
                    else="| [[$web.$topic][$percntSPACEOUT{$topic}$percnt]] <span class='foswikiSmall' ><em> $percntIF{\"'$expand(TopicType or Classification)'!=''\" then=\"<noautolink>$expand(TopicType or Classification)</noautolink>\" }$percnt</em></span>  | <noautolink>$formfield(Summary)</noautolink>   | $percntUSERSWEB$percnt.$expand(info.author) | $formatTime(info.date, '$day $month $year') |\"
                         }$percnt"
                  }%"
}%
<!-- interrupt glue -->
%STOPINCLUDE%

Test

Topic Summary Modified bySorted ascending On
TagTemplate Main.lynnwood_40skyloom_2ecom 05 November 2010
Tag TopicType Topic tags Main.lynnwood_40skyloom_2ecom 05 November 2010
TopicClassWebHomeIntro MasterTopic Provides basic browsing of TopicClassification setup suitable for including in WebHome. LynnwoodBrown 16 September 2025
RenderTableSearchResults TopicFunction Generic table display for search results LynnwoodBrown 16 September 2025
RenderSearchString TopicFunction Generates a properly formatted searchstring for either SEARCH or DBQUERY LynnwoodBrown 16 September 2025
RenderTagSearch TopicFunction Search content based on tags LynnwoodBrown 27 September 2022
RenderClassificationTopic TopicFunction Renders general layout for ClassificationTopics. LynnwoodBrown 18 July 2017
RenderCreateNewTopicDropDown TopicFunction Renders a drop-down menu for creating new topics. LynnwoodBrown 10 February 2017
RenderTag LynnwoodBrown 19 February 2013
TagForm LynnwoodBrown 28 March 2012
GnuGeneralPublicLicense ApplicationLicense Standard Open Source License MichaelDaum 01 September 2006
TaskTopicMaster MasterTopic Defines common elements for Task topics. ProjectContributor 05 October 2007
RenderBlogList TopicFunction Renders list of blog entries ProjectContributor 05 October 2007
TCAOCommentsTemplate MasterTopic System.CommentPlugin templates ProjectContributor 04 October 2007
RenderTopicCreator TopicFunction TopicFunction to display a form to create a new classified topic ProjectContributor 15 March 2007
RenderBarFilterWithSort TopicFunction Bar with sort and filter options ProjectContributor 08 March 2007
HelpTopic TopicType Help and how-tos related to TCAO. ProjectContributor 08 March 2007
MasterTopic TopicType Topics and Topic elements that are reused across installation using INCLUDE variable. Modifying these topics immediately affect the entire installation. ProjectContributor 08 March 2007
RenderTopicSummaryWithCommentsList TopicFunction Displays short intro to topic with number of comments ProjectContributor 24 February 2007
RenderStandardFilter TopicFunction Renders UI for filtering list of topics. ProjectContributor 23 February 2007
TopicClassification MasterTopic The basic overview of how TCAO organizes content within a web. ProjectContributor 20 February 2007
TopicTree MasterTopic Displays topic parent-child relationships as tree. ProjectContributor 17 February 2007
RenderCommentCountBar TopicFunction Counts comments in a topic by counting at special tag ProjectContributor 17 February 2007
TopicFunctionTemplate ProjectContributor 16 February 2007
TopicFunction TopicType TopicType of topics to be called by a (parameterized) INCLUDE or DBCALL ProjectContributor 15 February 2007
PostTCAOInstallHelp HelpTopic Help message displayed after TCAO is added to a web. ProjectContributor 09 February 2007
RenderNewTopicHelp TopicFunction Renders the help banner at the topic of new Classification topics ProjectContributor 09 February 2007
RenderCreateNewTopic TopicFunction Provides interface for creating new classified topics ProjectContributor 30 January 2007
AllNews MasterTopic Used by NewsItem TopicType, listing all news in all webs. ProjectContributor 10 January 2007
RecentNews MasterTopic Used by NewsItem TopicType, listing 5 most recent news topics in all webs. ProjectContributor 10 January 2007
MasterTopicTemplate ProjectContributor 10 January 2007
JustBlogItInstallation HelpTopic How to enable quick-blogging with JustBlogIt Firefox extension ProjectContributor 10 January 2007
RenderInstallTopicClassification TopicFunction Provides form for installing core TCAO infrastructure to a web. ProjectContributor 10 January 2007
TopicClassForm ProjectContributor 03 January 2007
RenderAddComment TopicFunction Creates a section to add comments to a topic. ProjectContributor 02 January 2007
RenderRightSideBar TopicFunction Renders a sidebar on right side of page. ProjectContributor 02 January 2007
NewTopicTypeInstallHelp HelpTopic Post-installation help for new TopicTypes. ProjectContributor 02 January 2007
GenericNewClassInstallHelp HelpTopic Default post-installation help for new classifications. ProjectContributor 02 January 2007
RenderBlogListItem TopicFunction For rendering an individual WebLog entry within RenderBlogList. ProjectContributor 02 January 2007
RenderTableOfContent TopicFunction Renders a table of content with or without twisty ProjectContributor 02 January 2007
RenderFunctionCallers TopicFunction Render a list of topics that use a given TopicFunction ProjectContributor 28 December 2006
TopicForm ProjectContributor 28 December 2006
CreateNewWebLog TopicFunction Topic for creating new WebLogs ProjectContributor 28 December 2006
TopicType Classification Organize content by function or topic structure. ProjectContributor 17 October 2006
CreateNewTopic ProjectContributor 16 October 2006
TcaoAdmin SubjectArea Topics related to administrating the TCAO application. ProjectContributor 10 October 2006
TcaoUse SubjectArea Basic information about using TCAO ProjectContributor 10 October 2006
SubjectArea SubjectArea ProjectContributor 05 October 2006
TCAO HelpTopic Acronym for TopicClassificationAddOn ProjectContributor 03 October 2006
RenderAlphabeticalSearch TopicFunction Provides A-Z links to generate alphabetical list. ProjectContributor 03 October 2006
RenderTWikiFormList TopicFunction, DocuTopic Renders a list of DataForms that make use of the given TWikiFormAttribute ProjectContributor 08 August 2006
HelpTopicTemplate ProjectContributor 22 October 2005

Calls to 'RenderTableSearchResults'

(C) 2006 LynnwoodBrown@Skyloom.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS