Versions Compared

Key

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

...

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