Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Info

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 contentsCreate 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

...

Info

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

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

 

 

Content by Label
showLabelsfalse
max5
spacesDRAFT
sortmodified
showSpacefalse
reversetrue
typepage
labelsarticle