About Jamie on Software

Jamie on Software is Jamie Rumbelow's online journal. An opinionated, charismatic teenager's views on web development, business, programming, education, technology and journalism.

Sparkplugs

We build ExpressionEngine and MojoMotor add-ons to help web professionals build better sites.

http://getsparkplugs.com/

Tags
Tweets
Feeds
We Love
Powered by Squarespace

Entries in mojoblog (1)

Monday
Mar282011

New in MojoBlog 2.1 - {excerpt}

I have received an immensely high number of requests from users of my popular MojoBlog add-on to add an {excerpt} variable; to allow users to display a short, configurable excerpt of each blog entry's content.

As of MojoBlog 2.1, released last week, you can now use the {excerpt} tag along with the excerpt_words="" parameter to control and display your entry's excerpts. Here's an example of it in use.

{mojo:blog:entries excerpt_words="20"}
    {entries}
        <h2>{title}</h2>
        <p>{excerpt}</p>
        <p><a href="{url_title_path}">Read More</a></p>
    {/entries}
{/mojo:blog:entries}

The previous will display a list of all entry titles and excerpts (chopping off the content at 20 words), along with a Read More link. As always, do check out the documentation to see what else MojoBlog can do.