ショップページにブログを公開をすることができます。
ブロック
if ページ
タグ | 説明 |
{block:BlogPage} | Blogページ (Apps) |
{block:NotBlogPage} | Blogページではない (Apps) |
if Apps
タグ | 説明 |
{block:AppsBlog} | Blog Appをインストールしている |
{block:AppsBlogArticleIsPinned} | ブログ固定記事がある |
変数
ページ
タグ | 説明 |
{BlogPageURL} | BlogページのURL (Apps) |
{BlogFeedPageURL} | BlogのRSSページのURL (Apps) |
テンプレート
タグ | 説明 |
{BlogContentsTag} | Blogページのコンテンツのタグ (Apps) |
Apps
タグ | 説明 |
{AppsBlogArticleTitle} | ブログ記事のタイトル |
{AppsBlogArticlePageURL} | ブログ記事ページのURL |
ブログ固定記事の表示
Blog Appの記事作成ページでは固定記事について下記のように案内しています。
ショップのトップページには固定記事リンクを設置するようにして下さい。

例)
{block:AppsBlogArticleIsPinned}
<div><a href="{AppsBlogArticlePageURL}">{AppsBlogArticleTitle}</a></div>
{/block:AppsBlogArticleIsPinned}

ブログRSSで記事を取得して表示
例)
<script>
$(function(){
$.ajax({
url: '{BlogFeedPageURL}',
type: 'GET',
dataType: 'xml',
})
.done(function(data) {
i = 1;
$('item', data).each(function() {
var link = $('link', this).text();
var title = $('title', this).text();
var image = $('image', this).text();
var blog_content = '<div><a href="' + link + '"><img src="' + image + '"><p>' + title + '</p></a></div>';
$('#container').append(blog_content);
if (i >= 3) {
return false;
}
i++;
});
});
});
</script>
