You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This document details how to publish news articles which are displayed in various sections of the website.

 

 

News articles are different to static content in that it can change based on posted date, start and finish date.

For example, you can publish an article about a promotion that will disappear at the end of the promotional period.

Publishing Articles

To Create or Modify Article Contents:

  1. Login in as Administrator
  2. Go to "Content" 
  3. Go to "Article Maintenance"
  4. To modify an existing article, use the article search and enter key words related to the article
  5. To create a new article, click on Article Maintenance
  6. Click New to create a New Article, or Modify to edit an existing article that is currently selected
  7. Fill in the follow sections

Prompt
Value
Notes
Article TemplateOptionalIf this article has additional content that needs to be rendered, create a new article template
Article Text / HTMLActual Content of the ArticleShort Content of the Article that is displayed in the Front Page / News Page
Start DateStart Date of the ArticleThe article will automatically appear on this start date
Expiry DateEnd Date of the ArticleThe article will disappear after the end of this date
DescriptionA short description of your ArticleThis is normally the header
Article PostedThe Date of the PostThis is used for sorting purposes so that the latest posted appears first

To display the articles, create a template referencing the article system

Sample Code

Attach the data source Articles,Article.GetArticlesNotExpiredForCurrentUser(null,-1,2,"") with the sample code below

@foreach (Article article in Model.Articles) {
    <div class="news-item">
		<h4>@Raw(article.Description)</h4>
      <p>@Raw(article.ArticleText)</p>
	</div>
}

 

 

Error rendering macro 'contentbylabel'

parameters should not be empty

  • No labels