Log.antiflux.org

From Antiflux Wiki

(Difference between revisions)
Jump to: navigation, search
Current revision (20:14, 29 September 2007) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 2: Line 2:
-
== List Entries ==
+
== List Comments ==
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.
Line 28: Line 28:
</form>
</form>
</pre>
</pre>
 +
 +
 +
== Last N Entries ==
 +
 +
The default template shows entries from the past month or some other period of time. If you don't add a new entry for a while and someone comments on one of your entries, it will rebuild the main page as a blank. To always display the last, say, 5 entries, change the MTEntries tag on your main index page from
 +
 +
<pre>
 +
<MTEntries>
 +
</pre>
 +
 +
to
 +
 +
<pre>
 +
<MTEntries lastn="5">
 +
</pre>
 +
 +
[[Category:Services]]

Current revision

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 Comments

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>


Last N Entries

The default template shows entries from the past month or some other period of time. If you don't add a new entry for a while and someone comments on one of your entries, it will rebuild the main page as a blank. To always display the last, say, 5 entries, change the MTEntries tag on your main index page from

<MTEntries>

to

<MTEntries lastn="5">
Personal tools