You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
BlogAddOnHome
(12 Dec 2006,
ProjectContributor
)
(raw view)
E
dit
A
ttach
---+!! Blog !AddOn *A simple weblog application.* See %SYSTEMWEB%.BlogAddOn for an introduction and installation instructions. %BR% This topic is meant for administrators and serves as introduction springboard to !BlogAddOn topics. You may safely delete this topic. %TOC% ---++ Start from here * BlogPost - overview of all posts with filtering and sorting options * BlogPostCreator - form to start new posts * BlogCategory - editable list of blog categories ---++ Reference for administrators * BlogPostForm - form definition with post data fields * BlogPostTemplate - every new post gets settings from this topic * BlogPostViewTemplate - every post is displayed through this view template * BlogPostCommentTemplate - form template for comment box (see %SYSTEMWEB%.CommentPlugin) * BlogAddOnStyles - default css styles for BlogPost and blog posts (BlogPostViewTemplate) *Note:* Care must be taken when: * Renaming post topics: the comment topic needs to be renamed as well * The comment topic is created automatically when the first comment is submitted, using the syntax =topic name= + =Comment=. * Renaming categories: the comment topics are not updated automatically ---++ Putting the blog post overview in a different topic To put the overview in a topic, write: <verbatim> %INCLUDE{"BlogPost"}% </verbatim> You may set display defaults, for example for category and sort field, using additional parameters. Possible values are: %TABLE{sort="off"}% | *Parameter* | *Possible values* | *Default value* | | =category= | =%SEARCH{" *\s*.*?" topic="BlogCategory" type="regex" multiple="on" casesensitive="on" nonoise="on" separator="=, =" format="$pattern(.* \*\s*([^\n]*).*)"}%= (categories can be defined in BlogCategory) | none | | =sort= | =formfield(Title)=, =formfield(Category)=, =formfield(Author)=, =created=, =modified= | none | | =limit= | any number | no limit | | =sortdirection= | =ascending=, =descending= | =ascending= | For example, to show latest 10 posts, sorted latest post on top, write: <verbatim> %INCLUDE{"BlogPost" sortdirection="descending" sort="created" limit="10"}% </verbatim> This will generate: %INCLUDE{"BlogPost" sortdirection="descending" sort="created" limit="10"}% ---+++ Creating filter links You may want to have a list of links that lead to a filtered blogpost list. For instance, the link named "Interesting" would lead to a list of blog posts of that category. Here's how: <verbatim> *Categories:* <div class="foswikiUnvisited">%SEARCH{" *\s*.*?" topic="BlogCategory" web="%WEB%" type="regex" multiple="on" casesensitive="on" nonoise="on" format="<a href='%SCRIPTURL{view}%/%WEB%/BlogPost?sort=created;limit=10;sortdirection=descending;category=$pattern(.* \*\s*([^\n]*).*)'>$pattern(.* \*\s*([^\n]*).*)</a>"}%</div> </verbatim> This will generate: *Categories:* <div class="foswikiUnvisited">%SEARCH{" *\s*.*?" topic="BlogCategory" web="%WEB%" type="regex" multiple="on" casesensitive="on" nonoise="on" format="<a href='%SCRIPTURL{view}%/%WEB%/BlogPost?sort=created;limit=10;sortdirection=descending;category=$pattern(.* \*\s*([^\n]*).*)'>$pattern(.* \*\s*([^\n]*).*)</a>"}%</div>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 12 Dec 2006,
ProjectContributor
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback