mtde.info

Movable Type Developers Express

(システム)コメントプレビューのテンプレート

2008年2月23日 20:59 | Writer: apstar | 記事本文

システムテンプレート>コメントプレビューのテンプレート記述例です。

ファイル名:comment_preview.mtml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<MTIgnore>変数宣言</MTIgnore>
<MTSetVar name="body_class" value="mt-comment-preview">
<MTSetVar name="body_onload" value="individualArchivesOnLoad(commenter_name)">
<MTSetVar name="system_template" value="1">
<MTSetVar name="comment_preview_template" value="1">
<MTSetVar name="feedback_template" value="1">
<MTSetVarBlock name="page_title"><$MTEntryTitle$>へのコメント</MTSetVarBlock>
<MTSetVarBlock name="title"><$MTBlogName encode_html="1"$>: <$MTGetVar name="page_title"$></MTSetVarBlock>
<MTSetVarBlock name="html_head">
<script type="text/javascript" src="<$MTLink template="javascript"$>"></script>
</MTSetVarBlock>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="sixapart-standard">

<$MTInclude module="mdlMeta"$>

<body<MTIf name="body_onload"> onload="<$MTGetVar name="body_onload"$>"</MTIf>>

   <$MTInclude module="ヘッダー"$>

   <div id="maincontainer">

      <div id="maincontent">
         <h2>コメントの確認</h2>
         <$MTInclude module="コメント詳細"$>
         <$MTInclude module="コメント"$>
      </div>

      <$MTInclude module="サイドバー"$>
      <$MTInclude module="mdlExtra"$>

   </div>

   <$MTInclude module="フッター"$>

</body>
</html>

以下、特記事項です。

テンプレートの作成例

2008 mtde.info