Add a news feed
Use the news page template as the central place on your website to publish news items. You can then embed a feed of headlines in any other page – for example, your home page. When you publish a news item, the feed updates automatically.
You can also embed a feed of news items tagged with a keyword – ‘Publications’ or ‘Conferences’, for example. Some departments do this on their research landing pages.
In this article:
Add a news feed in the Components Editor
-
Browse to the page where you want to add the news feed.
-
Go to Edit > Edit centre content:
-
Place your cursor where you want to add the news feed.
-
In the left-hand menu, select Feeds > News feed:
Alternatively, to edit an existing News feed, select it in the editor then select Settings in the component toolbar.
-
The News feed pop-up appears:
-
Enter the Page path (using an absolute or relative URL) for the news page you want the feed component to display.
-
Use the drop-down list to choose whether you want news entries in the feed to Display as a List, as Tiles, or Tiles - scrollable. Note that some feed options are available only for one display style.
-
If you chose to display the feed as Tiles - scrollable, set how many tiles should display at a time by entering a number in the Number to show on screen at once box. Use the drop-down to select which Scroller controls to show:
See our help article on the Horizontal scroller component for more details on this.
-
Optionally, set a Feed title to appear at the top of the feed.
-
Select the Maximum number of items to appear in the feed.
-
If you chose to display the feed as a List, use the checkbox to determine whether articles should Show thumbnail images. News items without a selected image will display a placeholder image of flags.
-
Use the checkboxes to determine whether Headlines are clickable links, and if you want the feed to Show publication dates for articles.
-
Optionally, Enter tag names separated by commas to show only items with these tags. This is useful if you want the feed to display only those news items that have been assigned particular tags on the source page.
-
If the feed is set to display in List view, choose how much of each item you want to Show:
-
Headlines only - No item detail will be shown.
-
Expanded top story - The first item in the list will display its abstract under the headline.
-
All stories expanded - All items will display the story abstract under their headline.
-
Specific number of stories expanded - You can set the Number of stories to expand (Optional).
-
-
Optionally, set the Character limit for headlines.
Note: If you chose to expand any articles above, you will also have the option to set a Character limit for expanded stories. This may be useful for articles with long abstracts, to control the amount of space the feed occupies on your page.
-
For feeds displaying as Tiles or Tiles - scrollable, you have the following additional options:
-
Show Facebook like buttons next to each item by selecting the checkbox.
-
Display only the thumbnail and headline for items in the feed by deselecting the Show abstracts for items checkbox.
-
Select Show social media sharing buttons to display a Share this button beneath each news item. Visitors who select this button will have the option to share the item on Facebook, Twitter, LinkedIn or via email.
Note: Facebook like buttons and the Share this button will only be displayed if the source page for the feed has its view permissions set to 'Any user'.
-
-
Select Add news feed.
-
Once you're finished editing your page, select Publish.
Add a news feed in the old visual (classic) editor
-
Go to the page where you want to add the news feed.
-
Go to Edit > Edit centre content or Edit right content.
-
Place your cursor in the visual editor where you want to add the feed.
-
In the toolbar, go to Insert a > News feed. The News feed window appears:
-
In the Page path box, select the picker button and browse to the location of the news page you want to take a feed from. Alternatively, enter the relative link to the news page.
-
Specify the Number of items to show.
-
Choose whether headlines in your feed link to the full news item or display as static text. For the former, select Headlines are clickable links.
-
Choose whether or not to Show publication dates above each headline.
-
Choose whether or not to Show thumbnail images alongside each headline.
-
Optionally, restrict the number of characters in the headline or story by entering a number in the Show only first n characters boxes.
-
Under the Display options, choose how you want the headlines to appear.
-
Optionally, limit the news feed to show items with particular tags. To do so, in the Filter by tag box, enter the tags separated by commas. For example:
Postgraduate,Publications,Research seminars
-
When you have finished specifying the options, select Insert. You should see text similar to the following in the visual editor:
[sched-news num=3 showthumbnails=true tags='Postgraduate,Publications,Research seminars']/fac/department/news[/sched-news]
The attributes for the
[sched-news]
tag in the example above specify:-
show the most recent three news items
-
show thumbnail images alongside each headline
-
only show news items with any of the tags ‘Postgraduate’, ‘Publications’ or ‘Research seminars’
-
-
When you have finished editing your page, select Publish. You should see the news items in a list. When you publish a news item to your main news page in the future, the feed updates automatically.