CommonSpot - Blog Custom Element
Using the Blog custom element inside CommonSpot.
Blog Custom Element
The blog element is used for grouping posts that allow commenting, this custom element is only available using the bootstrap layout.
- When creating your bootstrap page, make sure to check “Hide Page Header Section” in the page custom properties. The blog element has its own title apart from the page title which will replace the default page title.
- Choose a desired grid row from the default container’s “Layout Properties”.
- Add the Blog custom element into your container and click to define it. The Blog element is located under the “Bootstrap Only” category.
- Field Properties Defined in the Custom Element:
Post Date: Used to define the date the post. Defaults to the current date.
Post Title: The title for your post. This should be identical to your page title, if possible, but does not need to be unique within a subsite.
Teaser: An optional small blurb of text shown below the link to the blog post when in list format.
Author: Optional field for displaying the author of the blog post.
Post Text: The main text area for adding your blog post.
Allow Comments: Uncheck to disable commenting on the post.
Active: Uncheck to mark as inactive. This will remove the post from blog listings and make the post unavailable for viewing outside of authoring
- Select the appropriate taxonomy for how you would like to filter the blog post.
Listing Blog Posts
Listing blog posts is accomplished by using a render mode on the Blog custom element.
- Add the blog custom element into a container on your page.
- Under the blog gear, click "Choose Layout".
- From the list choose "Default Blog Listing" and save.
- Define the Render Properties by using the gear next to the added Blog custom element.
- Define your render mode and constraints. Normally you’ll want “One or More Records – Based on a Filter (Content Reuse)”.
- Define your filter.
Select “Subset of Records”.
Filter by your selected taxonomy by selecting your taxonomy field and the corresponding taxonomy term.
If you want to have scheduled posts, you can add another Criterion (AND), and filter by the Post Date, Less than or Equals, Current Date.
Sort order should generally be Post Date, Descending.
- Preview Records or Save.