Activity Stream, part 2

| | Comments (1)

Aha, with a clue from Toni_H I added an “elsewhere” page with my activity stream.

Just created an index template with this content, and linked it to a file.

<MTSetVar name="body_class" value="mt-main-index">
<MTSetVar name="main_template" value="1">
<MTSetVar name="main_index" value="1">
<MTSetVar name="sidebar" value="1">
<MTSetVarBlock name="title"><$MTBlogName encode_html="1"$></MTSetVarBlock>

<$MTInclude module="Header"$>
<mt:setvarblock name="today_date"><mt:Date format="%B %e">
</mt:setvarblock>

<div class="action-stream hfeed">
    <mt:ActionStreams days="5">
        <mt:DateHeader>
            <h2 class="action-stream-header asset-name">
                <mt:setvarblock name="this_date"><mt:StreamActionDate format="%B%e">
                </mt:setvarblock>
                <mt:if name="$today_date" eq="$this_date">
                    Today
                <mt:else>
                    <mt:var name="this_date">
                </mt:if>
            </h2>
            <ul class="action-stream-list">
        </mt:DateHeader>

        <li class="hentry service-icon service-<mt:var name="service_type">">
            <span class="entry-content"><mt:StreamAction smarty_pants="1"></span>
            <span class="published"><mt:StreamActionDate utc="1"
                  format="%Y-%m-%dT%H:%M:%SZ"></span>
        </li>

        <mt:DateFooter>
            </ul>
        </mt:DateFooter>
    </mt:ActionStreams>
</div>
<$MTInclude module="Footer"$>

1 Comments

Toni Hambilton Author Profile Page said:

I notice your activity stream is getting way long with all the joost videos. There’s a way for you to clump them together as you can see on my site: http://mt4.juneeonline.com.

If you want to look at how I did it, the code for my template is here: http://dl.getdropbox.com/u/175426/entry.txt

This tutorial (http://www.richardbenson.co.uk/2008/08/collating-action-streams.html) helped me set it up.

Leave a comment

About this Entry

This page contains a single entry by beaufour published on October 21, 2008 2:18 PM.

FriendFeed support for Joost was the previous entry in this blog.

Joost APIs and YUI is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.1