5月 09 2010

[MT備忘録]サイトパス生成メモ

サイトパス生成メモ

<mt:BlogParentWebsite>
    <$mt:WebsiteURL setvar="website_url"$>
    <$mt:WebsiteHost setvar="website_host"$>
    <$mt:WebsiteRelativeURL setvar="website_path"$>
</mt:BlogParentWebsite>

ウェブサイトURL: http://example.com/foo/  とした場合、次のように出力される。

項目 使い方 出力例
ホストからの相対パス <$mt:Var name=’website_path’$>index.html /foo/index.html
URL <$mt:Var name=’website_url’$>index.html http://example.com/foo/index.html
SSL領域のURL https://<$mt:Var name=’website_host’$><$mt:Var name=’website_path’$>contact.html https://example.com/foo/contact.html