NewsList
Summary
The NewsList
loop lets you to display a list of news items.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
News:[CustomFieldSystemName]
Returns the value of the news custom field.
@GetString("News:[CustomFieldSystemName]")
News:CategoryDescription
Returns the description of the news category.
@GetString("News:CategoryDescription")
News:Clicks
Returns the number of times a news item has been visited by a user.
@GetInteger("News:Clicks")
News:FirstXChar
Returns the first X
characters of the current news item main text or teaser text, without tags.
@GetString("News:FirstXChar")
News:FirstXCharClean
Returns the first X
characters of the current news item main text or teaser text.
@GetString("News:FirstXCharClean")
News:FrontendEdit
Deprecated.
Returns a DIV with an edit text when paragraph frontend edit is enabled.
@GetString("News:FrontendEdit")
News:Href
Returns the URL for displaying the current news item like this:
/Default.aspx?ID=14879&PID=16552&M=NewsV2&Action=1&NewsId=75
@GetString("News:Href")
News:ImageText
Returns the caption text for the news items image.
@GetString("News:ImageText")
News:Initials
Returns the initials of the author of the current news item.
@GetString("News:Initials")
News:ManchetClean
Returns the news item teaser text without <br>.
@GetString("News:ManchetClean")
News:Personalize.Image
Returns the unread news prefix image.
@GetString("News:Personalize.Image")
News:SmallImageClean
Returns the path for the overview image for the news item.
@GetString("News:SmallImageClean")
News:TotalNewsLink
Returns the news link with edit and delete links (if available for logged in user).
@GetString("News:TotalNewsLink")
News:TotalNewsLinkClean
Returns the news link without the edit and delete links - only the read more link.
@GetString("News:TotalNewsLinkClean")