PowerCMS™
アルファサードのゴールデンウィーク休業について を追加しました。
[ブログ] PowerCMS 6 でのアップデートまとめ を追加しました。
[新着情報] 多要素認証設定画面の QR コードが表示されない問題への対策ファイル を追加しました。
[新着情報] PowerCMSクラウド 月額費用の価格改定に関する追加情報を公開します を追加しました。

MTActions

MTActions

ユーザーの投稿した記事やトピック、コメント、お気に入り登録など、コミュニティ内でのアクション一覧を表示するためのブロックタグ

使い方

<mt:Actions namespace="community_pack_recommend" include_blogs="all" sort_order="descend" lastn="30">
    <mt:ActionsHeader>
    <ul class="recent-actions">
    </mt:ActionsHeader>
    <mt:ActionsEntry>
        <li class="entry icon-entry">
            Posted <a href="<$mt:EntryLink>"><$mt:EntryTitle encode_html="1"$></a> to 
            <a href="<$MTEntryBlogURL$>" class="icon-blog"><$MTEntryBlogName$></a>
            <div class="excerpt"><$MTEntryExcerpt$></div>
        </li>
    </mt:ActionsEntry>
    <mt:ActionsComment>
        <li class="comment icon-comment">
            Commented on
            <mt:CommentEntry>
            <a href="<$mt:CommentLink$>"><$mt:EntryTitle encode_html="1"$></a>
            </mt:CommentEntry>
            <div class="excerpt"><$mt:CommentBody words="40"$>...</div>
        </li>
    </mt:ActionsComment>
    <mt:ActionsFavorite>
        <li class="favorite icon-favorite">
            Favorited <$mt:EntryTitle encode_html="1"$></a> on 
            <a href="<$mt:EntryLink$>">%%<a href="<$MTEntryBlogURL$>" class="icon-blog"><$MTEntryBlogName$></a>
        </li>
    </mt:ActionsFavorite>
    <mt:ActionsFooter>
    </ul>
    </mt:ActionsFooter>
<mt:else>
    <p class="note">No recent actions.</p>
</mt:Actions>

モディファイア

sort="authored_on | created_on"

アクションを並べる方法を選択します。authored_on はユーザー名順、created_on (初期値) は時系列に並べます。

days="N"

指定した N 日以内のアクションをすべて表示します。days は単独で使います。他のオプションと併用すると、days が無視されます。

range_incl="

namespace=""

author_id="id"

object_ds=""

direction="descend | ascend"

limit="N"

lastn モディファイアが最新アクションから指定件数表示するのに対し、limit モディファイアは、指定された条件でフィルタリングした結果を指定数を最大件数として表示します。

lastn="N"

指定した数字の件数分記事を表示します。N は 0 より大きな数字にしてください。

sort_order="ascend | descend"

並べる順序を指定します。ascend を指定すると昇順、descend は降順です。

sort_by="created_on | title | status | modified_on | author_id | excerpt"

アクションを並び替える対象を指定します。

  • title (記事のタイトル)
  • author_id (作成ユーザー ID)
  • excerpt (概要)
  • status (記事の状態:下書き/公開)
  • created_on (作成日)
  • modified_on (変更日時)
  • authored_on (初期値)