'cause everyone should have a blog

Function: RenderBlogArchiveHitList

Render the search result in the BlogArchive

Parameters

  • QUERY: search string
  • PARAMS: url params to pass through to the pagination

Implementation

%STARTINCLUDE%
*~~
<div class="blogArchiveHitList">
<a name="hits"></a>
%~~ DBQUERY{"TopicType=~'\bBlogEntry\b' AND State='enabled' %QUERY%"
~~~   %IFDEFINED{"%URLPARAM{"skip"}%" then="skip=\"%URLPARAM{"skip"}%\""}%
~~~   limit="15"
~~~   order="created" 
~~~   reverse="on"
~~~   hidenull="on"
~~~   header="<div style=\"text-align:center;padding:2em;\"><table>"
~~~   format="<tr>
~~~     <td style=\"padding-left:1em;\" align=\"right\"> $index </td>
~~~     <td style=\"padding-left:1em;\" align=\"right\"> <span style=\"white-space:nowrap\">$formatTime(createdate,'$day $mon $year')</span> </td>
~~~     <td style=\"padding-left:1em;\" align=\"left\" width=\"100%\"> [[$web.$topic][$formfield(Headline)]]$percntREDDOT{\"$web.$topic\"}$percnt 
~~~       $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\" format=\"($dollarcount)\"}$percnt </td>
~~~     </tr>"
~~~   footer="</table>$percntDBCALL{\"RenderPageNavigation\" 
~~~      SKIP=\"%URLPARAM{"skip" default=" 0"}%\" 
~~~      MAX=\"$count\"
~~~      LIMIT=\"15\"
~~~      PARAMS=\"%PARAMS%\"
~~~   }$percnt</div>"
~~~ }%
</div>
*~~
%STOPINCLUDE%

Test

See BlogArchive.

Calls to 'RenderBlogArchiveHitList'

TopicForm
TopicType: TopicFunction
TopicDescription: Render the search result in the BlogArchive

r2 - 21 Mar 2006 - 02:36 - TWikiAdminGroup
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 QBFreak.net? Send feedback
Powered by TWiki/Dakar Wed, 08 Feb 2006 build 8740