Displays a list of news items on a web page.
This module supports Liquid.
Syntax
{bb_news filter="" sort="" resultsPerPage="10" displayPagination="true|false" showUnexpired="true|false" showExpired="true|false" emptyMessage="No items found." collectionName="" layout=""}
Properties
- filter -These fields and associated values build a filter string as follows:
filter="fieldname1:fieldValue1 | fieldname2:fieldValue2"
. - sort -
- emptyMessage - Custom message value that is rendered. Default text is "No items found.".
- collectionName - The parameter is used to access the collection the Liquid tags.
- showUnexpired - Accepts a true/false value. This parameter is "true" by default and shows all news articles that have not expired yet.
- showExpired - Accepts a true/false value. This parameter is "false" by default does not show any expired articles. Set to "true" if you would like to include articles that have expired.
- layout - Renders the module output using:
layout="Default" or layout="List View Layout"
- sets the layout to the Default module layout;layout="My Custom Layout"
- set the layout to use a custom layout template;layout=""
- allows you to code a custom layout right within the web page HTML.
Liquid Tags
- {{newsId}} – Renders the system generated ID of the news item.
- {{newsTitle}} – Renders the title of the news item with a hyperlink.
- {{newsTitleNoLink}} – Renders the title of the news item without a hyperlink.
- {newsContent}} – Content details of the news item.
- {{newsUrl}} – Renders the URL of the news item.
- {{newsPublishDate}} – Renders the the publish date of the news item.
- {{newsExpiryDate}} - Renders the expiry date of the news item.
- {{newsLastUpdated}} - Renders the date the news item was last updated.
- {{newsIsEnabled}} – Defines whether the news item is enabled for display.
- {{newsTags}} - Renders a list of tags that are assigned to the news item.
- {{newsCounter}} – Incremental count of the number of news items on the page.
- {{newsFromDate}} – Business Catalyst legacy tag, use {{newsPublishDate}} going forward.
- {{newsToDate}} – Business Catalyst legacy tag, use {{newsExpiryDate}} going forward.
- {{newsButton | text:"Your Text"}} – Coming in future release. Displays a button that clicks to the news item details. Does not render on detail page.
Comments
0 comments
Please sign in to leave a comment.