Renders a sidebar on right side of page.
Documentation
This topic function renders a right-hand sidebar.
Parameters
- CONTENT - A comma-deliminated list topics to be be included in the site bar. Include the web reference for the topic - e.g.
%BASEWEB%.TheTopic
.
- RECENT - Set to a number to display that number of recently changed topics. "5" is a good number to try out.
- CREATENEW - Set to "yes" to include a "Create New Topic" drop-down list of topic types.
Css
Implementation
%STARTINCLUDE%
<div style="position:relative;float:right;width:30%;background-color:white;border:2px dotted %WEBBGCOLOR%;padding:1em;margin:0.5em;display:inline;">
%IFDEFINEDTHEN{"%CONTENT%" glue="off"}%
%FORMATLIST{"%CONTENT%" separator="$dollarn" format="$percntINCLUDE{\"$1\" }$percnt" }%
%FIDEFINED%
%IFDEFINEDTHEN{"%RECENT%" glue="off"}%
---+++++!! <font FACE="arial,helvetica"> $test most recently changed topics: </font>
<font size="-1">%SEARCH{".*" web="%BASEWEB%" format="• $web.$topic - $date " separator="%BR%" regex="on" nonoise="on" order="modified" reverse="on" limit="%RECENT%" }%
%BR% _See also: [[%BASEWEB%.WebChanges][Recent changes]]._ </font>
%FIDEFINED%
%IFDEFINEDTHEN{"%CREATENEW%" as="yes" glue="off" }%
---+++++!! <font FACE="arial,helvetica"> Create a new topic:</font>
Create new:
<form action="%SCRIPTURL{view}%/%BASEWEB%/CreateNewTopic">
<select name="type" onchange="this.form.submit()">
<option>Select...</option><option value="" >blank topic</option>
%$nopDBQUERY{ "Classification = 'TopicType'" web="%BASEWEB%" regex="on" order="topic" format= "<option>$topic</option>"}%</select> <br />
<input type="hidden" name="step" value="two" />
</form>
%FIDEFINED%
</div>
%STOPINCLUDE%
Test
Copyright
(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.