TypePad マニュアル

JSON Feed Template : インデックス・テンプレート :

『 JSON Feed Template 』は、Javascriptで最新記事を出力するためのJSONフィードです。内容をカスタマイズしたら、同じテンプレート名( JSON Feed Template)で上書き保存してください。オリジナルなテンプレートを作成する場合は、この標準テンプレートをベースに、カスタマイズをするのが楽でしょう。

関連モジュール・テンプレート

テンプレートの内容

if(typeof(TypePadJsonFeed) == 'undefined') TypePadJsonFeed = new Array();
TypePadJsonFeed["<$MTBlogURL encode_js="1"$>"] = {
  "title": "<$MTBlogName remove_html="1" encode_js="1"$>",
  "link": "<$MTBlogURL encode_js="1"$>",
  "id": "tag:<$MTAtomFeedIDBase$>:weblog-<$MTBlogID$>",
  "updated": "<MTEntries lastn="1"><$MTEntryDate timezone="UTC" format_name="W3CDTF"$></MTEntries>",
  <MTBlogIfDescription>"subtitle": "<$MTBlogDescription remove_html="1" encode_js="1"$>",</MTBlogIfDescription>
  "generator": "http://www.typepad.jp/",
  "entry": [
<MTEntries>
          {
              "title": "<$MTEntryTitle remove_html="1" encode_js="1"$>",
              "link": "<$MTEntryPermalink encode_js="1"$>",
              "id": "tag:<$MTAtomFeedIDBase$>:post-<$MTEntryID$>",
              "summary": "<$MTEntryExcerpt remove_html="1" encode_js="1"$>",
              "author": "<$MTEntryAuthor encode_js="1"$>",
              <MTEntryCategories>"category": "<$MTCategoryLabel encode_js="1"$>",</MTEntryCategories>
              "published": "<$MTEntryDate timezone="UTC" format_name="W3CDTF"$>",
              "updated": "<$MTEntryDateModified timezone="UTC" format_name="W3CDTF"$>"
            }<MTEntriesFooter> <MTElse>, </MTElse> </MTEntriesFooter>
</MTEntries>
         ]
};
if(typeof(TypePadJsonCallback) != 'undefined'){
   TypePadJsonCallback(TypePadJsonFeed["<$MTBlogURL encode_js="1"$>"])
}


      

[ テンプレート一覧に戻る ] [ モジュール一覧に戻る ]