MovableType: Difference between revisions

Jump to navigation Jump to search
2,733 bytes added ,  23 November 2004
Line 28: Line 28:




== 迴響加上RSS Feed (Recent comments in RSS 0.91) ==
== 迴響加上RSS Feed ==
 
=== Recent comments in RSS 0.91 ===
: 參考:phil ringnalda dot com: [http://philringnalda.com/blog/2002/06/comment_rss_feed.php Comment RSS feed] 2002-06-06
: 參考:phil ringnalda dot com: [http://philringnalda.com/blog/2002/06/comment_rss_feed.php Comment RSS feed] 2002-06-06
: 新增以下模版,並輸出檔案至comments.xml
: 新增以下模版,並輸出檔案至comments.xml
Line 53: Line 55:


  <language>en-us</language>
  <language>en-us</language>
主模版在</title>與<head>之間,加上
<link rel="alternate" type="application/rss+xml" title="Recent comments in RSS" href="<$MTBlogURL$>comments.xml"/>
=== Recent comments in RSS 1.0 ===
: 參考:終極邊疆 Final Frontier BLOG: [http://blog.serv.idv.tw/archives/000206.php 在MT中把迴響作成RSS] 2004-05-24
: 新增以下模版,並輸出檔案至comments.rdf
<pre>
<?xml version="1.0" encoding="<$MTPublishCharset$>"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:cc="http://web.resource.org/cc/"
xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="<$MTBlogURL$>">
<title><$MTBlogName encode_xml="1"$></title>
<link><$MTBlogURL$></link>
<description><$MTBlogDescription encode_xml="1"$></description>
<dc:language>zh-tw</dc:language>
<dc:creator></dc:creator>
<dc:date><MTEntries lastn="1"><$MTEntryDate format="%Y-%m-%dT%H:%M:%S" language="zh-tw"$><$MTBlogTimezone$></MTEntries></dc:date>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=<$MTVersion$>" />
<MTBlogIfCCLicense>
<cc:license rdf:resource="<$MTBlogCCLicenseURL$>" />
</MTBlogIfCCLicense>
<items>
<rdf:Seq><MTComments lastn="15" sort_order="descend">
<rdf:li rdf:resource="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$>" />
</MTComments></rdf:Seq>
</items>
</channel>
<MTComments lastn="15" sort_order="descend">
<item rdf:about="<$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$>">
<MTCommentEntry><title>Re: <$MTEntryTitle encode_xml="1"$></title>
<link><$MTCGIPath$>mt-comments.cgi?entry_id=<$MTCommentEntryID$>#comment<$MTCommentID pad="1"$></link>
<description><$MTCommentBody encode_xml="1"$></description>
<dc:subject><$MTEntryCategory encode_xml="1"$></dc:subject></MTCommentEntry>
<dc:creator><$MTCommentAuthor encode_xml="1"$></dc:creator>
<dc:date><$MTCommentDate format="%Y-%m-%dT%H:%M:%S" language="zh-tw"$><$MTBlogTimezone$></dc:date>
</item>
</MTComments>
</rdf:RDF>
</pre>
主模版在</title>與<head>之間,加上
<link rel="alternate" type="application/rss+xml" title="Recent comments Feed in RSS 1.0" href="<$MTBlogURL$>comments.rdf"/>
=== other ===
* etc.: [http://www.fortysomething.ca/mt/etc/archives/002174.php Full Posts + Comments RSS Template for Movable Type] (RSS 2.0) 2003-04-08
* Shih-Hsien's BLOG » [http://sanwangx.brain-c.com/archives/2004_05/29_37/ 製作包含文章和迴響的 RSS] (RSS 1.0) 2004-05-29
Keywords: [http://www.google.com.tw/search?q=movabletype+comment+%28rss%7Catom%29+feed movabletype comment feed atom]


Also see [[BlogLinks]]
Also see [[BlogLinks]]

Navigation menu