Call 1-888-670-1652

 Spire CoreDB Connect Error (2002) Connection timed out

How To Create a News Content Page

In order to display the full content of individual news items when they are selected from a news feed or from the results list of a news item selector, all that is needed is a single page.

Step 1:
The first step is to create a page within the CMS administration in the desired location within the website hierarchy by selecting the "Add New Page" icon from the "Actions" drop-down menu and filling out the provided form.

Step 2:
Once created, select the new page from the "Page Structure" hierarchy and open the page's "Content" tab, where you can select to begin editing the page by clicking on the "Edit" icon.

Step 3:
Once within the editing window, select the "Source" editor tab in upper left-hand corner and place your cursor in the location on the page where you would like news items' content to be displayed (generally somewhere between the <body> and </body> tags).


Step 4:
You can then open the "System" drop-down menu located in the toolbar at the top of the window, and scroll down until you find the "News" section.

From here, select "news-content" and the following tag will appear in the location where your cursor is located:

<sys:news-content />


Step 5:
Once the tag has been entered, simply click "Publish" at the top of the screen and the process is complete.


Now, when creating your news feed, simply specify the filepath/URL of this page using the path attribute. This way, whenever users click on a news item, they will be redirected to this page, where they will be able to view its full content.

Note:
The following instructions are meant solely for those familiar with xslt.

Should you wish to make any changes to the way in which the content page is styled, you should access the "News" module administration.


From here, click on the "Setup" section at the top of the screen, and then select "Object Types" from the menu on the left-hand side of the window.


In the "Available Collections" table that appears, click on the name of the news object type that will be displayed in the news feed that this content page is connected to.

Once clicked, you will see a table labeled "Designs," where you can select the design that you have assigned to this page with the content-design attribute in the sys:news-list tag used to create the news feed.


In the design's xslt document that appears, you can make the desired CSS style changes by modifying the classes and <div> tags as you wish.


Once you are done, simply click "Save" at the bottom of the screen, and your changes will be applied to the content page.