Use the News Slider macro to display news from blogposts and pages with thumbnails and excerpts in a simple and beautiful slider.
Parameters
Parameters
Parameter | Default | Description | |
---|---|---|---|
News selectors | Content Types
| blogposts | Choose whether you want to display news from pages or blog posts or both. Valid values are:
|
Labels
| None | Comma-separated list of labels to search news by. Prefix labels with a + sign to indicate must-have labels or use a - sign to exclude news having a certain label. Examples:
| |
Spaces
| None - news from all spaces will be displayed | Comma-separated list of space keys to restrict searching of news. Use @self for current space. Leave blank for all spaces. | |
CQL Query
| None | Search query to further refine your news search. See Confluence Search Syntax for more information. Examples:
| |
Time Frame
| None - no time limit for news | Specify how far back in time Confluence should look for news to be displayed. Example: Use 12h to display all news created or updated in the last 12 hours. Leave blank for no time limit. Available units are:
| |
Sort Order
| creationDate | Choose the order the news should be sorted. Valid values are:
| |
Filter News By Date Range
| Unchecked | This option allows you to sort the news by a specific date range. Based on the sort order you have chosen, the sort is applied. | |
Reverse Order
| false | Enable for reverse sort order. | |
Max Results
| 5 | The maximum number of news to be displayed in the slider. | |
Show Error If No News
| true | Enable to show an error message when no news is found. | |
Slider Configuration | Width
| None - responsive width will be used | Width of the slider in pixels. Leave blank for responsive width. |
Height
| None - the height of the tallest slide will be used | Height of the slider in pixels. Leave blank to automatically use the height of the tallest slide. | |
Auto Slide Display Time
| 4sec | Slide through the slider to choose the duration (sec) you want to display each of the news entries. The duration ranges from 1 sec to 120 sec. | |
Buttons Color
| None - topbar color of the current space will be used | Color of prev/next navigation. Use hexadecimal notation or HTML color name. Leave blank to automatically use the topbar color of the current space. | |
Background Color
| #f5f5f5 | The background color of news entries. Use hexadecimal notation or HTML color name. | |
Show Navigation
| true | Enable to show prev/next navigation. | |
Show Bullets
| true | Enable to show navigation bullets. | |
News Cards Configuration | News Image Label
| None - use the first image (in alphabetical order) the slider can find attached to the page or blog post | The file name or label of the image you want to display as a news image in the slider. The image needs to be attached to the corresponding page or blog post. Leave blank to use the first image (in alphabetical order) the slider can find attached to the page or blog post. If no image attachment with the given file name or label exists or the page or blog post has no image attachments at all, no news image will be displayed. Example: thumbnail.png |
News Text
| summary | Choose which part of the page or blog post content you want to display as news text:
Deprecated
| |
Display Space
| false | Enable to display the name of the space in news entries. | |
Display Author
| false | Enable to display the author's name in news entries. | |
Display Publication Date
| false | Enable to display the publication date in news entries. | |
Display Creator
| false | Enable this option to display the name of the creator in the news entries. | |
Display Created Date
| false | Enable this option to display the creation date of the news or blog posts in the news entries. | |
Display Social Stats
| false | Enable to display the number of comments and likes in news entries. | |
Enable Links
| true | Enable to link news entries to their corresponding page or blog post. | |
Open Links in the new Window
| false | Enable to open links in a new browser window, if links are enabled. | |
Deprecated | Auto Slide
| true | Enable to automatically slide through the news. |
Creating News Silder macro
To create a News Silder macro, perform the following steps:
Go to the page where you want to display the slides and click edit.
Click the + icon and search for the News Silder macro.
(or) you can type { News, the list with news macro suggestions is displayed.Select News Silder macro. The News Silder macro is displayed.
Type the name of the space from where you pull the news and to help you the results are auto-populated. You can specify multiple space names.
You can customize parameters according to your requirements. For more information, see Parameters.
Click Apply.
Publish the page.