{module_blogsitepost}

Description

Displays latest posts across all blogs.

Syntax

{module_blogsitepost rowCount="4" collection="my_custom_collection_name" template="/"}

Note: When using named parameters always wrap the individual parameters in double quotes. Also, do note that modules using named parameters do not work for campaigns just yet.

Parameters

This module can be rendered using:

  • the blog list layout - on this layout you can use either the legacy tags or Liquid output tags. Here is a list of all the tags you can use: Blog list's reference page
  • your own custom layout - take a look at the custom templates article for more details
  • Liquid collections - here are the Liquid output tags you can use:
Liquid tag Legacy tag Description
{{type}} The Blog type ID (56)
{{author}} {tag_blogpostauthor}Author of the post
{{body}} {tag_blogpostbody}Details of the post
{tag_blogpostbodypreview,Text}Display a preview of the first paragraph of your blog post. Replace "Text" with the relevant words to link to see the entire post.
{{date}} {tag_blogpostdate}Date of the post
{{day}} {tag_blogpostday} Day of the post
{{month}} {tag_blogpostmonth} Month of the post
{{monthNumeric}} {tag_blogpostmonthnumeric}Month part of the date the blog post was posted as a numeric value, e.g. 11-Dec-14 will render 12
{{title}} {tag_blogposttitle}The title of the post as an anchor linked to the permalink
{tag_blogposttitle_nolink}The title of the post
{{postFeaturedImage}} {tag_blogpostfeaturedimageurl} The featured image's URL of the blog post.
{{year}} {tag_blogpostyear}Year part of the date that the post was submitted, e.g. 11-Dec-14 will render as the year only, like this: 2014
{{commentsCount}} {tag_commentcount}Number of comments for current post
{tag_commentlist} List of comments associated with this post.
This list is fully customizable, take a look at the Comment list layout for the list of parameters you can use to render the comments.
For additional information on how to render the output of this tag using Liquid take a look at the Enable other Liquid tags article.
{tag_commentrank}Rank of comments associated with this post
{tag_permalink}Link for Permalink with anchor
{tag_permalinkonly}Link for Permalink without anchor
{{trackbacksCount}} {tag_trackbackcount}Number of trackbacks for current post
{{trackbackUrl}} {tag_trackbacklink}Link for trackback
{tag_trackbacklist} List of trackbacks associated with this post.
For additional information on how to render the output of this tag using Liquid take a look at the Enable other Liquid tags article.
{{id}} {tag_blogpostid} Displays the blog post's ID
{{authorPictureUrl}} {tag_blogpostauthorpictureurl} Will render the picture url (relative to site root). e.g. /images/profile.jpg
{tag_blogpostauthorpicture}Will render the full HTML image tag of the authors profile picture.
{{url}} {tag_itemurl_nolink}URL to the item being referred, without host
{tag_itemurl_withhost}URL to the item being referred, with host

Examples

  • {module_blogsitepost rowCount="2"} - will display the most recent 2 posts on the site.
  • {module_blogsitepost collection="blog-posts" template=""} - will not render anything. What will happen is the Liquid "blog-posts" collection will become available. Take a look at this article for more information on collections.

Syntax

{module_blogsitepost,numberOfPosts}

Parameters

  • numberOfPosts - limits the number of posts displayed by the module)

Layouts

Examples

  • {module_blogsitepost,2} - will display the most recent 2 posts on the site.