Not a developer? Go to MovableType.com

Documentation

StreamActionRollup

This block template tag is for outputting actions in groups according to special rules.   It is a part of the ActionStreams plugin in MT 4.25.


Example
 

<mt:ActionStreams lastn="30">
<mt:If name="first">
<ul>
</mt:If>

<mt:StreamActionRollup by="stream">
<mt:If name="first">
<li><mt:StreamActionDate formatname="iso8601">l - <$mt:AuthorDisplayName escape="html"$> saved
<mt:Else name="last">
<mt:Ignore>If there are more than 3 actions, use 『A, B and C』display</mt:Ignore>
and
<mt:Else>
<mt:Ignore>If there are more than 3 actions, use 『A, B and C』display</mt:Ignore>
,
</mt:If>
<a href="<mt:StreamActionURL escape="html">"><$mt:StreamActionTitle escape="html"$></a>
<mt:If name="last">
</li>
</mt:If>

<mt:Else>
<mt:Ignore>use this template to deal with actions that can't be organized</mt:Ignore>
<li><mt:StreamActionDate format
name="iso8601"> - <$mt:StreamAction$></li>

</mt:StreamActionRollup>

<mt:If name="last">
</ul>
</mt:If>

</mt:ActionStreams>



Modifiers

  • by=”date | service | stream | action”


Sets which actions to treat the same. Actions are outputted according to these settings.

  • date: Arranges outputted actions by date.
  • service: Arranges outputted actions by service. Helps organize identical services that run for more than a day.
  • stream: Arranges actions by type (like post, photo, link, etc). Helps organize identical actions that run for more than a day.
  • action: This is the same as setting both service and stream.
Default settings are date, action.


  • glue=”foo”

    You can decide which character to use to separate two actions when organizing outputted actions.
Back