Sitefinity CMS

News Public Controls Send comments on this topic.
See Also
Sitefinity Building Parts > Modules > Generic Content Based Modules > News > News Public Controls

Glossary Item Box

This topic provides a description of the public controls of the News module available in Page Edit mode:

  News - Public Controls

Figure 1

 

These two controls are the new generation - they are based on Content View control. Before them, there were other two public controls - News List and Single News which are now removed from the toolbox.

 

News View

Description 

This is the News View public control. It will be the only available control that displays one or more news items.  For more on news items creation and manipulation, see News Overview

 

Setting the Public Controls

There are two property tabs for the News View control - Basic and Advanced.

 

The Basic tab is a designer for the NewsView control. It provides user-friendly way to make settings for this control:

 

 

Setting the properties in the Basic tab is enough to make the News View control work. The properties in the Advanced tab, however, provide advanced functionality for extending the control.

 

The Advanced tab contains sections with the properties of the News View control as shown in Figure 2:

News Public Controls: News View Properties Sections

Figure 2

 

Following are some basic settings that need to be made to work with the News View control:

  1. Behavior section: Visible should be True
  2. Data section: ProviderName should contain the name of the provider; in this case - News

 

News Archive

Description 

This is the News Archive public control. It displays a list of links for each month that contains News items. Expired News items are also included. Figure 3 shows what the News Archive control displays after it is added to a page. For more on news items creation and manipulation, see News Overview

News Public Controls: News Archive Content Display

Figure 3

 

Setting the Public Controls

Following are some basic settings that need to be made to work with the News Archive control:

  1. Behavior section: Visible should be True 
  2. Behavior section: ArchivePageUrl should be set to the page that contains the news items. Use the Select button to choose a page that contains the News View public control. 
  3. Data section: ProviderName should contain the name of the provider; in this case - News

 

Figure 4 illustrates the available sections for the properties of News Archive:

News Public Controls: News Archive Properties Sections

Figure 4 

See Also

Sitefinity Building Parts: Generic Content Based Modules
News Overview
Overview of Generic Content Based Modules
Generic Content Overview

Developing with Sitefinity: Modules API
News API Overview
News API Walkthrough