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:
- Login in as Administrator
- Go to "Content"
- Go to "Article Maintenance"
- To modify an existing article, use the article search and enter key words related to the article
- To create a new article, click on Article Maintenance
- Click New to create a New Article, or Modify to edit an existing article that is currently selected
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> } |
Related articles
Content by Label | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|