Last Updated: 17 Dec 2015
A News Item allows you to add articles to your site. These articles could be anything from a media release to a general article on your site. You can then use these assets within the menu of your site or create an Asset Listing page to list the assets or create a What's New page to list the latest articles.
Tip: The main difference between the News Item and Standard Page is that there is a field called Summary. In this field yo u can enter a short summary about the article. You can then display the short summary in an Asset Listing page and link to the News Item, which shows the article.
Adding a News Item
When you add a new News Item, the Create new News Item screen will be displayed, as shown in the figure below.
Enter the following details for the News Item:
- New headline: enter the title or headline for the article. This field is mandatory and is also used as the name of the asset.
- Contact name: enter the author or the person to contact about the article. This field is optional.
- Contact phone: enter the phone number for the person specified in the field above. This field is optional.
- Summary: to enter the summary for the article click the icon – the WYSIWYG Editor will appear. Enter the summary for the News Item. You are able to use the buttons available in the WYSIWYG Editor toolbar to format the content. This field is optional when adding a News Item.
- Body: to enter the body of the article click the icon – the WYSIWYG Editor will appear as shown. Enter the body of the News Item. You are able to use the buttons available in the WYSIWYG Editor toolbar to format the content. This field is optional when adding a News Item.
Once you have entered this information, click Commit. Your News Item will appear in the Asset Map on the left hand side of the screen. Once your News Item is created, you can configure its settings on its associated asset screens. The majority of these screens are the same or similar to those for a Standard Page and are described in the Asset Screens manual. In this chapter, we will describe the Details screen, which is different for a News Item.
The Details screen for a News Item allows you to edit the information of the asset. For more information about the Status, Future Status and Thumbnail sections, refer to the Details Screen chapter in the Asset Screens manual. For more information on the Details and Edit Contents sections, refer to the Adding a News Item section in this chapter.
The Display section of the Details screen is shown in the figure below.
This section allows you to decide which information should be shown and which information is hidden for the News Item.
- Show headline?: select whether or not to display the headline/asset name of the article for the News Item. The default value is Yes.
- Show summary?: select whether or not to display the summary of the article for the News Item. The default value is Yes.
- Show body?: select whether or not to display the body of the article for the News Item. The default value is Yes.
- Show contact name?: select whether or not to display the contact name for the News Item. The default value is Yes.
- Show phone number?: select whether or not to display the phone number for the News Item. The default value is Yes.
The Link section of the Details screen is shown in the figure below.
This section allows you to link the headline of the News Item to an asset or an external web site. For example, you can use this if you have created a News Item in one site but the full media release has been created in another site. You can create a link from the News Item to the media release.
- URL: enter the full URL of the site you would like to link to. You will need to include the protocol – for example "http://" - otherwise the link will not work.
- Or Asset: select the asset you want to link to.
- URL Suffix: add any additional text to send as part of the URL query string. This will be added onto the end of the link, as specified in either the URL or Or Asset fields.
Using the News Item
To understand how the News Item works consider the following example. We are going to create a section within our site for our news articles. Each news article should be added to a list, with the latest news article appearing at the top of the list. For each article we can create a News Item. We can store these articles in a Folder and create an Asset Listing Page to display the News Items.
Creating the News Item
A News Item needs to be created for each article we want to display in the list.
Create a Folder within your site called News Articles. Change the link type of the folder from TYPE_1 to TYPE_2 so that the News Items will not appear within the menu of the site.
Create each News Item under the News Articles folder. As each News Item is created it will appear under the News Articles folder in the Asset Map, as shown in the figure to the right. Ensure that you have filled out the correct information for each article.
Layout of the News Item
When you preview a News Item, the information that was entered for the asset will appear, as shown in the figure below.
By default, for each News Item the contact name and number is shown. As we do not want the public to see this information we need to hide it.
To do this, on the Details screen of the News Item,Show contact name and Show phone number to No and click Commit. Now if you preview the News Item, the contact name and number does not appear, as shown in the figure below.
To make further changes to the layout of the News Item you can use a Paint Layout. When you create a Paint Layout, on the Details screen create a Custom Asset Type for the News Item – a News Item Format Bodycopy will be added in the Types Formats folder under the Paint Layout in the Asset Map. Using the WYSIWYG Editor and keyword replacements, modify the layout of the News Item by editing the contents of the News Item Format Bodycopy. Apply the Paint Layout to the News Items by going to the Paint Layouts screen. When you preview the News Item, the layout you defined in the Paint Layout will be applied. An example of this is shown in the figure below.
Asset Listing Page
Create an Asset Listing Page under the Site. On the Details screen, change the following options:
- Asset Types to List: select News Item. This will only show the News Items that appear under the News ArticlesFolder.
- Root Nodes: select the News ArticlesFolder as the Root Node.
On the Page Contents Bodycopy for the Asset Listing page, specify a title for the page and add the keyword replacement Asset Listing on the Edit Contents screen, as shown in the figure below.
For each News Item we want to show its headline and summary of the article. As this would require the use of the News Item keyword replacements, a specific Type Format body needs to be created. To do this, go to the Display Formats screen of the Asset Listing page. In the Customised Asset Type Formats section select News Item in the New Type Format field and click Commit. A new bodycopy asset called News Item Format will be added to the Type Formats folder under the Asset Listing page in the Asset Map. Edit the contents of this Bodycopy and enter the keyword replacements Asset Name Linked and Short Summary of the item. An example of this is shown in the figure below.
When you preview the Asset Listing page, for each News Item under the News ArticleFolder it will show the headline of the article, a link to the News Item and the summary of the article, as shown in the figure below.
At the moment there is no search order defined for this Asset Listing Page. It is listing the News Items in the order they appear in the Asset Map. If we were to add another News Item to the News Articles folder it would appear at the bottom of the list instead of the top.
To make the latest News Items appear at the top go to the Asset Sorting screen of the Asset Listingpage. In the Default Sort Direction select Descending and in the Default Sort By Option select Last Published Date. This means that the list will be sorted by the date and time the News Item was made Live and it will show them in reverse order - meaning the newest at the top and the oldest at the bottom. When you preview the Asset Listing page the order of the list should be reversed, as shown in the figure below.
For more information on the Asset Listing page, refer to the Asset Listing manual.
Let Us Know What You Think
Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.
Contact Squiz for Demo
Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.