Almost Recent Entries

There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last 10 posts, what is the point? Shouldn't it be a teaser to additional content?

The code below is a replacement for the recent entries widget code, Included on the front page it will show the previous 10 entries following the last entry on your index page. While on your archive pages it functions as a 'normal' recent entry widget.

<mt:If name="main_index">
<mt:SetVarBlock name="entryOffset"><mt:EntriesCount></mt:SetVarBlock>
<mt:else>
<mt:SetVarBlock name="entryOffset">auto</mt:SetVarBlock>
</mt:If>
<mt:If tag="BlogEntryCount">
    <mt:Entries lastn="10" offset="$entryOffset">
        <mt:EntriesHeader>
<div class="widget-recent-entries widget-archives widget">
    <h3 class="widget-header">Recent Entries</h3>
    <div class="widget-content">
        <ul class="widget-list">
        </mt:EntriesHeader>
            <li class="widget-list-item">
                <h4><a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a></h4>
                <p><mt:EntryBody words="25" convert_breaks="0" />...</p>
            </li>
        <mt:EntriesFooter>
        </ul>
    </div>
</div>
        </mt:EntriesFooter>
    </mt:Entries>
</mt:If>

Leave a comment

Gallery

Recent Entries

  • Creating a Clickable Header in Movable Type

    A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to...

  • So You Want To Write A Movable Type Plugin?

    One of the great things about Movable Type is it's flexibility. Behind the scenes is a powerful system that can be used to expand the...

  • Learning to Share

    Today I have added functionality to this site and to Darren Kenny Paralympic Cyclist that makes it easier for visitors to share the love and...

  • What has been happening

    The last week or so I have spent time on upgrading by brother's site to run on Movable Type 4.2. The previous site was still...

  • Almost Recent Entries

    There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your...

Close