Function: RenderTableSearchResults

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%
<div class="jqDataTablesContainer" data-paginate="true" data-searching="true" data-info="true">
%TABLE{tablewidth="100%" columnwidths="250px,300px,50px,50px"}%
%~~   DBQUERY{
*~~       
%~~       DBCALL{"%TCAOWEB%.RenderSearchString"  
~~~           BASESEARCH="%IFDEFINED{"%BASESEARCH%" then="$test" else="name = '.*'" glue="off" }%" 
~~~           INITSORT="%IFDEFINED{"%INITSORT%" then="$test" else="modified" glue="off"}%"
~~~           INITLIMIT="%IFDEFINED{"%INITLIMIT%" then="$test" else="all" glue="off"}%" 
~~~           FACETS="%IFDEFINED{"%FACETS%" glue="off"}%"
~~~        }% 
~~~        web="%BASEWEB%" 
~~~        exclude="%IFDEFINED{"%EXCLUDE%" then="$test" else="\bWeb*" glue="off"}%" 
~~~        header="$percntIFDEFINED{\"%HEADER_FORMAT%\" 
~~~            then=\"%HEADER_FORMAT%\"
~~~            else=\"| *Topic* | *Summary* | *Modified by* | *On* |$n\"
~~~            glue=\"off\"}$percnt"
~~~        footer="$percntIFDEFINED{\"%FOOTER_FORMAT%\" 
~~~            then=\"%FOOTER_FORMAT%\"
~~~            else=\"\"  glue=\"off\"}$percnt"
~~~        format="
*~~            $percntIFDEFINEDTHEN{\"%SEARCH_FORMAT%\" glue=\"off\"}$percnt
~~~            %SEARCH_FORMAT%
~~~            $percntELSEDEFINED$percnt
*~~            | [[$web.$topic][$percntSPACEOUT{$topic}$percnt]] <span class=\"foswikiSmall\" ><em>
*~~                 $percntIFDEFINED{\"$expand(TopicType or Classification)\" 
~~~                       then=\"<noautolink>$expand(TopicType or Classification)</noautolink>\" glue=\"off\"}$percnt</em></span>  |
~~~                <noautolink>$formfield(Summary)</noautolink>   | 
~~~                $percntUSERSWEB$percnt.$expand(info.author) | $formatTime(info.date, '$day $month $year') |
~~~         $percntFIDEFINED$percnt"
~~~     }%
</div>
%JQREQUIRE{"datatables"}%
<!-- interrupt glue -->
%STOPINCLUDE%

Test

Topic Summary Modified by On
Render Tag Search TopicFunction Search content based on tags LynnwoodBrown 26 September 2022
Render Table Search Results TopicFunction Generic table display for search results LynnwoodBrown 26 September 2022
Topic Class Web Home Intro MasterTopic Provides basic browsing of TopicClassification setup suitable for including in WebHome. LynnwoodBrown 26 September 2022
Render Classification Topic TopicFunction Renders general layout for ClassificationTopics. LynnwoodBrown 18 July 2017
Render Create New Topic Drop Down TopicFunction Renders a drop-down menu for creating new topics. LynnwoodBrown 10 February 2017
Render Tag LynnwoodBrown 19 February 2013
Tag Form LynnwoodBrown 28 March 2012
Tag Template Main.lynnwood_40skyloom_2ecom 05 November 2010
Tag TopicType Topic tags Main.lynnwood_40skyloom_2ecom 05 November 2010
Task Topic Master MasterTopic Defines common elements for Task topics. ProjectContributor 05 October 2007
Render Blog List TopicFunction Renders list of blog entries ProjectContributor 05 October 2007
TCAO Comments Template MasterTopic System.CommentPlugin templates ProjectContributor 04 October 2007
Render Topic Creator TopicFunction TopicFunction to display a form to create a new classified topic ProjectContributor 15 March 2007
Render Search String TopicFunction Generates a properly formatted searchstring for either SEARCH or DBQUERY ProjectContributor 09 March 2007
Render Bar Filter With Sort TopicFunction Bar with sort and filter options ProjectContributor 08 March 2007
Help Topic TopicType Help and how-tos related to TCAO. ProjectContributor 08 March 2007
Master Topic 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
Render Topic Summary With Comments List TopicFunction Displays short intro to topic with number of comments ProjectContributor 23 February 2007
Render Standard Filter TopicFunction Renders UI for filtering list of topics. ProjectContributor 23 February 2007
Topic Classification MasterTopic The basic overview of how TCAO organizes content within a web. ProjectContributor 20 February 2007
Topic Tree MasterTopic Displays topic parent-child relationships as tree. ProjectContributor 16 February 2007
Render Comment Count Bar TopicFunction Counts comments in a topic by counting at special tag ProjectContributor 16 February 2007
Topic Function Template ProjectContributor 15 February 2007
Topic Function TopicType TopicType of topics to be called by a (parameterized) INCLUDE or DBCALL ProjectContributor 15 February 2007
Post TCAO Install Help HelpTopic Help message displayed after TCAO is added to a web. ProjectContributor 09 February 2007
Render New Topic Help TopicFunction Renders the help banner at the topic of new Classification topics ProjectContributor 09 February 2007
Render Create New Topic TopicFunction Provides interface for creating new classified topics ProjectContributor 30 January 2007
All News MasterTopic Used by NewsItem TopicType, listing all news in all webs. ProjectContributor 10 January 2007
Recent News MasterTopic Used by NewsItem TopicType, listing 5 most recent news topics in all webs. ProjectContributor 10 January 2007
Master Topic Template ProjectContributor 10 January 2007
Just Blog It Installation HelpTopic How to enable quick-blogging with JustBlogIt Firefox extension ProjectContributor 10 January 2007
Render Install Topic Classification TopicFunction Provides form for installing core TCAO infrastructure to a web. ProjectContributor 10 January 2007
Topic Class Form ProjectContributor 02 January 2007
Render Add Comment TopicFunction Creates a section to add comments to a topic. ProjectContributor 02 January 2007
Render Right Side Bar TopicFunction Renders a sidebar on right side of page. ProjectContributor 02 January 2007
New Topic Type Install Help HelpTopic Post-installation help for new TopicTypes. ProjectContributor 02 January 2007
Generic New Class Install Help HelpTopic Default post-installation help for new classifications. ProjectContributor 02 January 2007
Render Blog List Item TopicFunction For rendering an individual WebLog entry within RenderBlogList. ProjectContributor 02 January 2007
Render Table Of Content TopicFunction Renders a table of content with or without twisty ProjectContributor 02 January 2007
Render Function Callers TopicFunction Render a list of topics that use a given TopicFunction ProjectContributor 28 December 2006
Topic Form ProjectContributor 28 December 2006
Create New Web Log TopicFunction Topic for creating new WebLogs ProjectContributor 28 December 2006
Topic Type Classification Organize content by function or topic structure. ProjectContributor 17 October 2006
Create New Topic ProjectContributor 16 October 2006
Tcao Admin SubjectArea Topics related to administrating the TCAO application. ProjectContributor 10 October 2006
Tcao Use SubjectArea Basic information about using TCAO ProjectContributor 10 October 2006
Subject Area SubjectArea ProjectContributor 05 October 2006
TCAO HelpTopic Acronym for TopicClassificationAddOn ProjectContributor 03 October 2006
Render Alphabetical Search TopicFunction Provides A-Z links to generate alphabetical list. ProjectContributor 03 October 2006
Gnu General Public License ApplicationLicense Standard Open Source License MichaelDaum 01 September 2006
Render T Wiki Form List TopicFunction, DocuTopic Renders a list of DataForms that make use of the given TWikiFormAttribute ProjectContributor 08 August 2006
Help Topic Template 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