New in MojoBlog 2.1 - {excerpt}
Monday, March 28, 2011 at 7:55PM 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.

Reader Comments