AVR32 Linux Developer Blog

Function: RenderDocNavigation

Render a double linked list to previous and next documents

Parameters

  • NAME: topic name of a BlogComment, BlogEntry or BlogLink to which the prev-next doc navigation is displayed
  • WHERE: search parameter to restrict the linked documents
  • SORT: criterion how to sort set of documents (created, name, ...)
  • REVERSE: invert the sorting order (on, off)

Implementation

%STARTINCLUDE%
*~~ 
<div class="blogNavigation">
<noautolink>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
  <td valign="top">
*~~
%~~ PREVDOC{"%NAME%" web="%WEB%" 
~~~   where="%WHERE%" 
~~~   order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%"
~~~   reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%"
~~~   format="&#171;"
~~~ }%
*~~
  </td>
  <td valign="top" class="blogPrev">
~~~
%~~ PREVDOC{"%NAME%" web="%WEB%"
~~~   where="%WHERE%" 
~~~   order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%"
~~~   reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%"
~~~   format="<a href=\"%SCRIPTURL{"view"}%/$web/$topic\" 
~~~     accesskey=\"b\"
~~~     $percntDBQUERY{topic=\"$topic\" web=\"%WEB%\" 
~~~       format=\"title=\\"$expand(Headline)\\">$expand(Name or Headline)\"
~~~     }$percnt</a>"
~~~ }% 
~~~
  </td>
  <td valign="top" class="blogNext"> 
~~~
%~~ NEXTDOC{"%NAME%" web="%WEB%"
~~~   where="%WHERE%" 
~~~   order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%"
~~~   reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%"
~~~   format="<a href=\"%SCRIPTURL{"view"}%/$web/$topic\"
~~~     accesskey=\"n\"
~~~     $percntDBQUERY{topic=\"$topic\" web=\"%WEB%\" 
~~~       format=\"title=\\"$expand(Headline)\\">$expand(Name or Headline)\"
~~~     }$percnt</a>"
~~~ }% 
~~~
  </td>
  <td valign="top">
*~~
%~~ NEXTDOC{"%NAME%" web="%WEB%" 
~~~   where="%WHERE%" 
~~~   order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%"
~~~   reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%"
~~~   format="&#187;"
~~~ }%
*~~
  </td>
</tr>
</table>
</div>
*~~
%STOPINCLUDE%

Test

BlogEntries

BlogLinks

BlogLinks (reverse)

BlogComments

Calls to 'RenderDocNavigation'

TopicForm
TopicType: TopicFunction
TopicDescription: Render a double linked list to previous and next documents
r1 - 2006-02-05 - 19:58:56 - TWikiContributor
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.