...
Prompt | Value | Notes |
---|---|---|
Article Template | Optional | If this article has additional content that needs to be rendered, create a new article template |
Article Text / HTML | Actual Content of the Article | Short Content of the Article that is displayed in the Front Page / News Page |
Start Date | Start Date of the Article | The article will automatically appear on this start date |
Expiry Date | End Date of the Article | The article will disappear after the end of this date |
Description | A short description of your Article | This is normally the header |
Article Posted | The Date of the Post | This is used for sorting purposes so that the latest posted appears first |
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|