Log.antiflux.org
From Antiflux Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
- | Use this page to post useful tips for log.antiflux.org users. | + | Use this page to post useful tips for log.antiflux.org users. For more information, be sure to check the [http://log.antiflux.org/docs/mtmanual.html Movable Type user manual]. |
+ | |||
+ | |||
+ | == List Entries == | ||
To display a list of recent comments, add something like this to your templates. | To display a list of recent comments, add something like this to your templates. | ||
+ | <pre> | ||
<MTComments lastn="5" sort_order="descend"> | <MTComments lastn="5" sort_order="descend"> | ||
<MTCommentEntry> | <MTCommentEntry> | ||
- | <a href="<$MTEntryLink$>#<$MTCommentID$>"><$MTCommentAuthor$> on <$MTEntryTitle$></a><br /> | + | <a href="<$MTEntryLink$>#<$MTCommentID$>"> |
+ | <$MTCommentAuthor$> on <$MTEntryTitle$></a><br /> | ||
</MTCommentEntry> | </MTCommentEntry> | ||
</MTComments> | </MTComments> | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | == Search == | ||
+ | |||
+ | To add a search box that lets visitors search your weblog, add something like this to your templates. | ||
+ | |||
+ | <pre> | ||
+ | <form method="get" action="<$MTCGIPath$><$MTSearchScript$>"> | ||
+ | <input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" /> | ||
+ | <label for="search" accesskey="4">Search this site:</label><br /> | ||
+ | <input id="search" name="search" size="20" /><br /> | ||
+ | <input type="submit" value="Search" /> | ||
+ | </form> | ||
+ | </pre> |
Revision as of 07:13, 29 November 2004
Use this page to post useful tips for log.antiflux.org users. For more information, be sure to check the Movable Type user manual.
List Entries
To display a list of recent comments, add something like this to your templates.
<MTComments lastn="5" sort_order="descend"> <MTCommentEntry> <a href="<$MTEntryLink$>#<$MTCommentID$>"> <$MTCommentAuthor$> on <$MTEntryTitle$></a><br /> </MTCommentEntry> </MTComments>
Search
To add a search box that lets visitors search your weblog, add something like this to your templates.
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>"> <input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" /> <label for="search" accesskey="4">Search this site:</label><br /> <input id="search" name="search" size="20" /><br /> <input type="submit" value="Search" /> </form>