knowledge:articleList

A loop on a filtered list of articles. You can use this component up to four times on the same page. Note that you can only specify one criterion for each data category and that only standard fields are accessible, such as:

  • ID (string): the ID of the article
  • Title (string): the title of the article
  • Summary (string): the summary of the article
  • urlName (string): the URL name of the article
  • articleTypeName (string): the developer name of the article type
  • articleTypeLabel (string): the label of the article type
  • lastModifiedDate (date): the date of the last modification
  • firstPublishedDate (date): the date of the first publication
  • lastPublishedDate (date): the date of the last publication

Example 

knowledge:articleList example that displays the ten most viewed articles in the ‘phone’ category as an HTML list of links. ‘phone’ is in the ‘products’ category group.

1<apex:outputPanel layout="block">
2    <ul>
3        <knowledge:articleList articleVar="article"
4            categories="products:phone"
5            sortBy="mostViewed"
6            pageSize="10"
7        >
8            <li><a href="{!URLFOR($Action.KnowledgeArticle.View, article.id)}">{!article.title}</a></li>
9        </knowledge:articleList>
10    </ul>
11</apex:outputPanel>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
articleTypesStringThe article list can be filtered by article types. 43.0
articleVarStringThe name of the variable that can be used to represent the article object in the body of the articleList component.Yes43.0
categoriesStringThe article list can be filtered by data categories. 43.0
hasMoreVarStringThe boolean variable name indicating whether the list contains more articles. 43.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
isQueryGeneratedBooleanFlag indicating whether this article list was produced from a generated query that did not originate from the user. 43.0
keywordStringThe search keyword if the search is not null. When the keyword attribute is specified, the results are sorted by keyword relevance and the sortBy attribute is ignored. 43.0
languageStringThe language in which the articles must be retrieved. 43.0
pageNumberIntegerThe current page number. 43.0
pageSizeIntegerThe number of articles displayed at once. The total number of articles displayed in a page cannot exceed 200. 43.0
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global
sortByStringThe sort value applied to the article list: ‘mostViewed,’ ‘lastUpdated,’ and ‘title’. When the keyword attribute is specified, the sortBy attribute is ignored. 43.0